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

Re: Intent to package nbpowerd



Wichert Akkerman wrote:
> Previously Mitch Blevins wrote:
> >  I do not want to register this script for any particular runlevel because
> >  it is called by the daemon only during a power condition.
> 
> Shouldn't it be in /usr/sbin then?

 The standard for these types of programs is to have it in /etc/init.d
 (or /etc/rc.d/init.d in Redhat).  Look at genpower or other programs.

 Because init calls this script, it's location needs to be specified
 in /etc/inittab.  Looking in /etc/inittab, you see the following lines:

 pf::powerwait:/etc/init.d/powerfail start
 pn::powerfailnow:/etc/init.d/powerfail now
 po::powerokwait:/etc/init.d/powerfail stop

 which means I would have to do one of the following:

 1) Instruct the user to edit inittab to point to the /usr/sbin location
    and by doing so break other ups-monitor packages (and molesting the
    sanctity of the sysvinit package)
 2) Have a postinst script do the editing, still molesting and breaking
 3) Encourage the sysvinit maintainer to change the location, breaking
    all other existing ups-monitor scripts.

 Neither option looks attractive.  Any suggestions?

 -Mitch

-- 
This .sig space available for lease.  Please contact:
Mitch Blevins | mitch_blevins@mindspring.com

Attachment: pgpcpvxvaYsAb.pgp
Description: PGP signature


Reply to: