From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,6251957aea518a19,start X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-04-05 17:40:19 PST Path: gmd.de!Germany.EU.net!EU.net!howland.reston.ans.net!gatech!psuvax1!news.cc.swarthmore.edu!netnews.upenn.edu!idefix.seas.upenn.edu!mayer From: mayer@seas.upenn.edu (Mike Mayer) Newsgroups: comp.unix.osf.osf1 Subject: Startup jobs Date: 6 Apr 1994 00:40:19 GMT Organization: University of Pennsylvania Message-ID: <2nt0dj$alj@netnews.upenn.edu> NNTP-Posting-Host: idefix.seas.upenn.edu X-Newsreader: TIN [version 1.2 PL2] 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.