Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: mayer@seas.upenn.edu (Mike Mayer)
Subject: Startup jobs
Date: 6 Apr 1994 00:40:19 GMT	[thread overview]
Message-ID: <2nt0dj$alj@netnews.upenn.edu> (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.



             reply	other threads:[~1994-04-06  0:40 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-04-06  0:40 Mike Mayer [this message]
1994-04-06 14:33 ` Startup jobs cm test program
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