[CentOS] Run script at startup
Adam King
kinga at sghs.org.uk
Wed Aug 20 13:13:40 UTC 2014
rc.local is systemV
CentOS 7 is systemD
Adam King
IT Systems Administrator
Skipton Girls High School
01756 707600
www.sghs.org.uk
----- Original Message -----
From: "Alan Holt" <berber.it at gmail.com>
To: centos at centos.org
Sent: Wednesday, August 20, 2014 2:07:59 PM
Subject: [CentOS] Run script at startup
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/>
_______________________________________________
CentOS mailing list
CentOS at centos.org
http://lists.centos.org/mailman/listinfo/centos
More information about the CentOS
mailing list