note about packaging init scripts

Bill Nottingham notting at redhat.com
Thu Mar 10 19:52:58 UTC 2005


Mike A. Harris (mharris at redhat.com) said: 
> >If you are packaging init scripts with a file path of
> > /etc/init.d/your_script
> >you *need* to either:
> >
> >a) prereq chkconfig (even if you don't call it)
> >b) package it in /etc/rc.d/init.d/your_script
> >
> >As /etc/init.d is a symlink, if you don't do one of
> >these, your package may be installed first, and this
> >will cause chkconfig to fail to install later.
> 
> Wouldn't it be better to do:
> 
> PreReq: /etc/init.d

Either chkconfig, or /etc/init.d will work.

Bill




More information about the Fedora-maintainers mailing list