home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.unix.misc:4046 comp.unix.questions:12936 comp.unix.programmer:5164
- Path: sparky!uunet!olivea!spool.mu.edu!yale.edu!ira.uka.de!math.fu-berlin.de!news.netmbx.de!Germany.EU.net!mcsun!sunic!aun.uninett.no!nuug!ncrnorw!ncrdkcp!ncrlnk!psinntp!ficc!peter
- From: peter@ferranti.com (peter da silva)
- Newsgroups: comp.unix.misc,comp.unix.questions,comp.unix.programmer,ncr.sys.unix
- Subject: Re: Daemons must never die
- Message-ID: <id.BAPU.XE3@ferranti.com>
- Date: 5 Nov 92 00:49:26 GMT
- References: <10114@ncratl.AtlantaGA.NCR.COM> <id.JVJU.413@ferranti.com> <1992Nov1.114010.464@global.hacktic.nl>
- Organization: Xenix Support, FICC
- Lines: 32
-
- In article <1992Nov1.114010.464@global.hacktic.nl> peter@global.hacktic.nl (Peter Busser) writes:
- > peter@ferranti.com (peter da silva) writes:
- > >If you're working in System V, add a line like this to /etc/inittab:
-
- > >tag:23:respawn:/usr/lib/daemon -mark 666 /dev/beast /etc/inferno
-
- > (IMHO, you forgot the old saying: "Don't do this at home, kids!")
-
- I do this at home. In my spare bedroom, to be precise.
-
- > Have you actually tried this? When I type /etc/crond at the command line then
- > it exits immediately.
-
- Oh, a self-backgrounding daemon. I don't like those on general principles,
- and this is one reason why. I'm not familiar with "crond", but I assume it's
- a self-backgrounding version of cron in some variant of UNIX.
-
- > My question is: do (most) daemons just fork+parent exit/child goes on, or
- > what?
-
- What.
-
- Most daemons assume that their parents have set things up for them. If there
- is a need for a self-backgrounding program write a front end or provide an
- appropriate flag that means "background yourself". I have a generic self-
- backgrounding front end I call "detach" that creates a brand new process
- group so you don't even have a control tty any more. Much better than nohup.
- --
- % Peter da Silva % 77487-5012 % +1 713 274 5180 % Har du kramat din varg idag?
- (<<VV$@\\$'&O 9$O%'$LT$&$"V6"$&$<4$?'&$ #I&&?$=$444@)24 24 scale newpath/P true
- def 3 21 moveto{dup 36 eq{pop/P P not def}{dup 7 and 4 sub exch 56 and 8 div 4
- sub P{rlineto}{rmoveto}ifelse}ifelse}forall stroke showpage % `-_-'
-