[CentOS] Run script at startup

Wed Aug 20 13:07:59 UTC 2014
Alan Holt <berber.it at gmail.com>

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 at 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 at 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/>