Re: note about packaging init scripts

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

 



On Thu, 2005-03-10 at 14:50 -0500, Mike A. Harris wrote:
> On Thu, 10 Mar 2005, Bill Nottingham wrote:
> 
> >Date: Thu, 10 Mar 2005 14:42:58 -0500
> >From: Bill Nottingham <notting@xxxxxxxxxx>
> >To: fedora-maintainers@xxxxxxxxxx
> >Content-Type: text/plain; charset=us-ascii
> >Reply-To: List for Fedora Package Maintainers
> >    <fedora-maintainers@xxxxxxxxxx>
> >X-BeenThere: fedora-maintainers@xxxxxxxxxx
> >Subject: note about packaging init scripts
> >
> >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

Don't "PreReq:" (which gets treated like a simple "Requires:" IIRC), use
"Requires(pre):" and for that matter "Requires(post):" as well. Don't do
this:

Requires(pre,post): /sbin/chkconfig

but do that instead:

Requires(pre): /sbin/chkconfig
Requires(post): /sbin/chkconfig

Nils
-- 
     Nils Philippsen    /    Red Hat    /    nphilipp@xxxxxxxxxx
"They that can give up essential liberty to obtain a little temporary
 safety deserve neither liberty nor safety."     -- B. Franklin, 1759
 PGP fingerprint:  C4A8 9474 5C4C ADE3 2B8F  656D 47D8 9B65 6951 3011

Attachment: signature.asc
Description: This is a digitally signed message part


[Index of Archives]     [Fedora Users]     [Fedora Development]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux