[CentOS] Run script at startup

Wed Aug 20 13:30:29 UTC 2014
Scott Robbins <scottro at nyc.rr.com>

On Wed, Aug 20, 2014 at 04:07:59PM +0300, Alan Holt wrote:
> 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.


Short answer:

http://forums.fedoraforum.org/showthread.php?t=300234

If you read through the thread, you'll see that you probably need to put
the rc.local file under the /etc/rc.d directory.

Longer answer:
As the file says, if you plan to stick with Linux, eventually, you'll have to
work with systemd.  This list has already discussed it to death, but, much
as many hate it, it's not going to go anywhere for awhile.


> 
> *[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.


-- 
Scott Robbins
PGP keyID EB3467D6
( 1B48 077D 66F6 9DB0 FDC2 A409 FA54 EB34 67D6 )
gpg --keyserver pgp.mit.edu --recv-keys EB3467D6