* Startup jobs
@ 1994-04-06 0:40 Mike Mayer
1994-04-06 14:33 ` cm test program
0 siblings, 1 reply; 2+ messages in thread
From: Mike Mayer @ 1994-04-06 0:40 UTC (permalink / raw)
I've written a utility which I want to have running at all times.
I was under the impression that all I needed to do to have
this utility startup when the machine started up was to create
an entry in /sbin/init.d (timeshare) and a symbolic link to this
entry in /sbin/rc3.d (S85timeshare). To create the entry, I
simply copied over /sbin/init.d/cron and changed every reference
to cron to timeshare_d. BUT...this doesn't seem to work...i.e.
timeshare_d is NOT running when all is said and done. Everything
works fine, however, if I (as root) type /sbin/init.d/timeshare start
or /sbin/init.d/timeshare stop.
In order to make timeshare_d behave somewhat like real other daemons,
the first thing it does is to fork() and exit. The child process
(of course) does not exit, but rather continues running. I don't
know if this has anything to do with my problem. I rather doubt
it, however, as I was unable to get the process to start before
I added the fork().
Thanks for any helpful insight.
mike
---------------------------------------------------------------------
Michael A. Mayer mayer@idefix.seas.upenn.edu
Chemical Engineering Department MaMayer@aol.com
University of Pennsylvania
220 S. 33rd St. Room 311A Tel: 215 898 0054
Philadelphia, PA 19104 FAX: 215 573 2093
p.s.
For those who are curious, this utility allows users to request
a temporary increased priority for "deadline" jobs. It works
mostly on the honor system, but because the jobs are to have
negative nice values, this utility (owned by root) takes care
of actually renicing the jobs.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Startup jobs
1994-04-06 0:40 Startup jobs Mike Mayer
@ 1994-04-06 14:33 ` cm test program
0 siblings, 0 replies; 2+ messages in thread
From: cm test program @ 1994-04-06 14:33 UTC (permalink / raw)
Hi,
have you thought of using an entry in /etc/inittab. One of the flags
is respawn which means that init reststarts the process if it dies. The
items started by the rcs are actually called from inittab as well, but the
respawn flag is not set.
Cheers Simon...
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1994-04-06 14:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-04-06 0:40 Startup jobs Mike Mayer
1994-04-06 14:33 ` cm test program
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox