Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Nov 2012 19:33:00 -0800
From:      David Wolfskill <david@catwhisker.org>
To:        "Michael W. Lucas" <mwlucas@michaelwlucas.com>
Cc:        current@freebsd.org
Subject:   Re: after upgrade, can't restart apache via cron
Message-ID:  <20121123033300.GH1758@albert.catwhisker.org>
In-Reply-To: <20121123031753.GA59632@bewilderbeast.blackhelicopters.org>
References:  <20121123031753.GA59632@bewilderbeast.blackhelicopters.org>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
On Thu, Nov 22, 2012 at 10:17:54PM -0500, Michael W. Lucas wrote:
> ... 
> 13  *  * * * /usr/local/etc/rc.d/apache22 restart
> 
> When this job runs, I get the following email:
> 
> Performing sanity check on apache22 configuration:
> ...
> 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?

PATH used by cron -- per crontab(5):

     Several environment variables are set up automatically by the cron(8)
     daemon.  SHELL is set to /bin/sh, PATH is set to /usr/bin:/bin, and
     LOGNAME and HOME are set from the /etc/passwd line of the crontab's
     owner.  HOME, PATH and SHELL may be overridden by settings in the
     crontab; LOGNAME may not.

and setfib is:

g1-227(9.1-P)[1] which setfib
/usr/sbin/setfib
g1-227(9.1-P)[2] 

Looks as if overriding PATH (in crontab) is least disruptive change
that will work.

Peace,
david
-- 
David H. Wolfskill				david@catwhisker.org
Taliban: Evil men with guns afraid of truth from a 14-year old girl.

See http://www.catwhisker.org/~david/publickey.gpg for my public key.

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (FreeBSD)

iEYEARECAAYFAlCu7mwACgkQmprOCmdXAD2gGwCfTneFyCAIGLDjkNZV9O5O1HxP
ZTMAnRk4yF+toIYuiGXV9mtKMR2YhrPO
=lLwj
-----END PGP SIGNATURE-----
help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20121123033300.GH1758>