* Please help with modification to my autonice daemon
@ 1993-11-18 9:06 Ray Bellis
0 siblings, 0 replies; only message in thread
From: Ray Bellis @ 1993-11-18 9:06 UTC (permalink / 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
------------------------------------------------------------------------------
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1993-11-18 9:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1993-11-18 9:06 Please help with modification to my autonice daemon Ray Bellis
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox