Re: Run script at startup

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



On Wed, Aug 20, 2014 at 03:16:58PM +0200, Luigi Rosa wrote:
> Alan Holt wrote on 20/08/2014 15:07:
> 
> > 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.
> 
> You can re-enable it with this command:
> 
> systemctl enable rc-local.service
> 
> that enables the Unit /etc/systemd/system/rc-local.service

One of the nice things about the rc-local.service is that you don't
need to enable it with systemctl.  It has a conditional check whether
/etc/rc.d/rc.local is executable, and if it is, it runs it, otherwise,
it ignores it.  This was set up so people could basically act like
they did in prior releases, and just drop executable scripts into
/etc/rc.d/rc.local, and it just worked.

-- 
Jonathan Billings <billings@xxxxxxxxxx>
_______________________________________________
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