Run script at startup

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Hello,

I just install the newest version of Centos 7 and I am a bit disappointed
with new /etc/rc/local file
I found that it's not usable anymore.

*[root@lab3 ~]# cat /etc/rc.local*
" THIS FILE IS ADDED FOR COMPATIBILITY PURPOSES"
It is highly advisable to create own systemd services or udev rules
to run scripts during boot instead of using this file.

Usually I was added my script to /etc/rc.local

*[root@lab3 ~]# echo /usr/bin/bash /opt/ssh_tunnel.sh >> /etc/rc.local*

And it was working perfect.

What I should do in new Centos 7, please help.


*--*
*Best regards.*
*Alex Berber*
*+9 72 54 285 952 3*
*www.linuxspace.org* <http://www.linuxspace.org/>
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos




[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux