Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: scoanc@compu010.cf.ac.uk (Cormack Andrew)
Subject: Thanks: problems starting daemons
Date: Mon, 19 Sep 1994 15:56:18 +0000	[thread overview]
Message-ID: <1994Sep19.155620.1386@cm.cf.ac.uk> (raw)

Thanks to those who replied with helpful suggestions. The problem seemed to
be that you can't just run a program from an init script by re-directing
all its output channels and backgrounding it with &. The program itself
needs to explicitly give up its controlling terminal (setsid()). While I
was doing this I also made it fork itself and use syslog rather than 
fprintf(stderr,...). The program, and I, are now much happier :-)

Andrew

--
       +-----------------------------------------------------------------+
       | Andrew Cormack               | email: cormack@cardiff.ac.uk     |
       | Systems Programmer           | snail: 40/41 Park Place, Cardiff |
       | University of Wales, Cardiff |                                  |
       +-----------------------------------------------------------------+


                 reply	other threads:[~1994-09-19 15:56 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox