You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by La...@softhome.net on 2006/11/08 23:51:26 UTC

[users@httpd] Re: Restarting Apache

Sean Conner writes: 

> It was thus said that the Great Jonathan Horne once stated:
>> On Tuesday 07 November 2006 20:32, Lamotkin@softhome.net wrote:
>> > I'm a newbie to Apache, actually, a dummy (:
>> >
>> > Can someone please explain to me,
>> > why am I allowed to restart Apache with
>> >
>> > httpd -k {restart|graceful}
>> >
>> > while working in shell interactively,
>> > and am failed to do so if it's done
>> > as a part of shell script started by cron?
>> > 
>> 
>> my first guess, would that maybe you didnt include the path to the binary in 
>> your cron statement?
> 
>   I was thinking the cron job might be running as the wrong user myself ...  
> 
>   -spc (But this is getting into the realm of OS issues, not Apache ... ) 
> 

Thank you very much, guys, and sorry for disturbing.
I fixed the problem by adding the job to the 'root' user crontab
(I did it to an ordinary user crontab before).
Thanks again! 

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org