Re: after upgrade, can't restart apache via cron

From: Adam Vande More <amvandemore_at_gmail.com>
Date: Thu, 22 Nov 2012 21:33:34 -0600
On Thu, Nov 22, 2012 at 9:17 PM, Michael W. Lucas <mwlucas_at_michaelwlucas.com
> wrote:

>
>
> FreeBSD bewilderbeast.blackhelicopters.org 10.0-CURRENT FreeBSD
> 10.0-CURRENT #15: Thu Nov  8 14:02:45 EST 2012
> mwlucas_at_bewilderbeast.blackhelicopters.org:/usr/obj/usr/src/sys/GENERIC
>  amd64
>
> I can manually restart apache22 with the following /etc/rc.conf entries:
>
> apache22_enable="YES"
> apache22_fib=0
>
> I have a cron entry that restarts apache regularly, to compensate for
> some mysql daftness.
>
> 13  *  * * * /usr/local/etc/rc.d/apache22 restart
>
> When this job runs, I get the following email:
>
> Performing sanity check on apache22 configuration:
> Syntax OK
> Stopping apache22.
> Waiting for PIDS: 59501.
> Performing sanity check on apache22 configuration:
> Syntax OK
> Starting apache22.
> eval: setfib: not found
> /usr/local/etc/rc.d/apache22: WARNING: failed to start apache22
>
> If I run /usr/local/etc/rc.d/apache22 restart from the command line, I
> can restart httpd without trouble.
>
> Any thoughts?
>

I would guess you need /usr/sbin/ in cron's path.

-- 
Adam Vande More
Received on Fri Nov 23 2012 - 02:33:35 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:32 UTC