*BSD News Article 73839


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!nntp.coast.net!fu-berlin.de!irz401!orion.sax.de!uriah.heep!news
From: j@uriah.heep.sax.de (J Wunsch)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: httpd through cron
Date: 15 Jul 1996 22:37:49 GMT
Organization: Private BSD site, Dresden
Lines: 23
Message-ID: <4seh7t$hn4@uriah.heep.sax.de>
References: <4s88g3$krt@usenet.srv.cis.pitt.edu>
  <4sdo3p$461@usenet.srv.cis.pitt.edu>
Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch)
NNTP-Posting-Host: localhost.heep.sax.de
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Newsreader: knews 0.9.6
X-Phone: +49-351-2012 669
X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F  93 21 E0 7D F9 12 D6 4E

jlfox+@pitt.edu (James L Fox) wrote:

> My problem is that I  want httpd to be lauched from cron so I
> don't have to keep logging in and manually kicking it every time
> the system is rebooted after maintenance. I've studied cron and
> crontab documentation and now am able to get httpd to run when
> I want it to under cron.  HOWEVER.....

cron might actually have a stripped-down environment only.  It's
possible that things like ${USER} or ${HOME} are not set (or set to
the environment of the user root).  If this is your problem, put it
into a wrapper script that defines the required part of the
environment.

Would it work if you start it using at(1)?  at inherits most (if not
all) of the current environment.

-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)