AW: [bf1942] bf1942 packages

Daniel E. Atencio Psille dea at atencio.de
Mon Mar 10 03:19:11 EST 2003


OK, I'm not familiar with ReadHat, SuSE and most of tho ether distributions
(and I was curious), that was why I asked for 'start-stop-daemon'. To run
any service as any user I just have to use its parameter '--chuid' together
with appropriate user:group combinations, it just makes life so easy :) Even
though it doesn't print any nice formatted output - debian is very
unspectacular ;)

Shouldn't a similar functionality exist in /etc/rc.d/init.d/functions which
lets you run a service as another user so you wouldn't have to worry about
using su?

And 'stealing' from existing init-scripts (especially good ones) is imho
best practice since it may provide a way to write clean an compliant
scripts, not only init scripts :)

> -----Original Message-----
> From: ScratchMonkey [mailto:ScratchMonkey at SewingWitch.com] 
> Sent: Monday, March 10, 2003 7:10 AM
> To: bf1942 at icculus.org
> Subject: RE: AW: [bf1942] bf1942 packages
> 
> 
> --On Monday, March 10, 2003 2:18 AM +0100 "Daniel E. Atencio Psille" 
> <dea at atencio.de> wrote:
> 
> > is there no such thing as 'start-stop-daemon' as debian 
> provides? This bin
> > provides (among others) the ability to specify a user:group.
> 
> For Red Hat, use the shell functions in /etc/rc.d/init.d/functions. 
> Standard initscripts source this and then use the daemon 
> function to spawn 
> stuff. That also prints the nice "[OK]" in color during boot for each 
> service. Check out any of the stock initscripts for examples. 
> I always 
> steal from them when coding new ones.
> 





More information about the Bf1942 mailing list