after upgrade, can't restart apache via cron

Hiroki Sato hrs at FreeBSD.org
Fri Nov 23 14:39:38 UTC 2012


"Michael W. Lucas" <mwlucas at michaelwlucas.com> wrote
  in <20121123031753.GA59632 at bewilderbeast.blackhelicopters.org>:

mw> eval: setfib: not found
mw> /usr/local/etc/rc.d/apache22: WARNING: failed to start apache22
mw>
mw> If I run /usr/local/etc/rc.d/apache22 restart from the command line, I
mw> can restart httpd without trouble.
mw>
mw> Any thoughts?

 This was due to $PATH in the cron job as already pointed out, but
 this should not happen.  I attached a patch to use full-path for
 external commands in rc.subr.  If there is no objection to this
 change I will commit it.

-- Hiroki
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rc.subr.cmdpath.20121123-1.diff
Type: text/x-patch
Size: 5619 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-current/attachments/20121123/6a780829/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-current/attachments/20121123/6a780829/attachment.sig>


More information about the freebsd-current mailing list