*BSD News Article 73815


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!spool.mu.edu!howland.reston.ans.net!nntp.coast.net!zombie.ncsc.mil!newsgate.duke.edu!godot.cc.duq.edu!newsfeed.pitt.edu!jlfox
From: jlfox+@pitt.edu (James L Fox)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: httpd through cron
Date: 15 Jul 1996 15:28:57 GMT
Organization: University of Pittsburgh
Lines: 42
Message-ID: <4sdo3p$461@usenet.srv.cis.pitt.edu>
References: <4s88g3$krt@usenet.srv.cis.pitt.edu>
NNTP-Posting-Host: unixs-eval.cis.pitt.edu


---------
Note:
I know this group is FreeBSD and not SunOs or CERN but I also
know that many posters/readers here are running web servers,
understand cron, and might want to try to do what I'm doing
with Apache on FreeBSD.
---------

Here I am again, the only responder to my own post!
I included all the dirty details of my problem after reading the
criticisms here of people who ask questions without sufficient
background information.  Apparently I overdid it!  Here's a
stripped down version of my question...  If you need more details,
please refer back to the article referenced by this one.

I can run the CERN httpd executable from the foreground of a login
to an unprivileged account on a Sun4 under SunOs 4.1.3.  I call httpd
with nohup and terminate the command with "&".  I use a port #
in the 7000 range and when I log out I leave behind what appears
to be a well behaved web server with MY OWN /cgi-bin/ directory!

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.....

The server gets started ok but it appears NOT to have inherited
the file access permissions of my account.  I suspect that if I made
the whole account's file system writable by the world, it might work!

The man pages tell me the image should run as the launcher. ???
I don't think it's a path problem; I define the path and files 
seem to be read ok.
>
>In summary --- launch from the foreground; no problems
>               launch from cron; file access permission problems
>
>Thanks for any insights,
>--Jim Fox
>