Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: rpb@psy.ox.ac.uk (Ray Bellis)
Subject: Please help with modification to my autonice daemon
Date: 18 Nov 1993 09:06:43 GMT	[thread overview]
Message-ID: <RPB.93Nov18090644@brain.psy.ox.ac.uk> (raw)

Some of you may be using my autonice daemon to automatically lower
the priority of long running user processes.  I've found that it's
impossible to start the currently released version from within
a /sbin/init.d/xxxx script.  I've heard from someone in the US
who has been told my DEC that there's an undocumented way of
starting a daemon properly, but my attempts to duplicate this
within my own source code have failed.

As far as I can tell, what's needed is an unknown combination of calls
to fork, setsid, open, close and dup2.  My current version already
does the fork and setsid, and that works fine what it's started from
the command line, but it won't work from within a shell script :-(

Any help would be much appreciated, especially if someone from within
DEC can give me the source code to the daemon library function.  If
you can't give me the source code, just tell me what functions are called
in what order and I'll turn it into C code myself... :-)

Thanks,

Ray.


--
------------------------------------------------------------------------------
R. P. Bellis				E-Mail:	<rpb@psy.ox.ac.uk>
Dept. of Experimental Psychology	Whois:	(RB83)
University of Oxford			Tel:	+44 865 271419
South Parks Road			Fax:	+44 865 310447
Oxford OX1 3UD
------------------------------------------------------------------------------


                 reply	other threads:[~1993-11-18  9:06 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