From owner-freebsd-current@FreeBSD.ORG Fri Nov 23 03:33:01 2012 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 717A910A for ; Fri, 23 Nov 2012 03:33:01 +0000 (UTC) (envelope-from david@catwhisker.org) Received: from albert.catwhisker.org (m209-73.dsl.rawbw.com [198.144.209.73]) by mx1.freebsd.org (Postfix) with ESMTP id 404878FC08 for ; Fri, 23 Nov 2012 03:33:00 +0000 (UTC) Received: from albert.catwhisker.org (localhost [127.0.0.1]) by albert.catwhisker.org (8.14.5/8.14.5) with ESMTP id qAN3X0l2019911; Thu, 22 Nov 2012 19:33:00 -0800 (PST) (envelope-from david@albert.catwhisker.org) Received: (from david@localhost) by albert.catwhisker.org (8.14.5/8.14.5/Submit) id qAN3X0BY019910; Thu, 22 Nov 2012 19:33:00 -0800 (PST) (envelope-from david) Date: Thu, 22 Nov 2012 19:33:00 -0800 From: David Wolfskill To: "Michael W. Lucas" Subject: Re: after upgrade, can't restart apache via cron Message-ID: <20121123033300.GH1758@albert.catwhisker.org> References: <20121123031753.GA59632@bewilderbeast.blackhelicopters.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="y0Ed1hDcWxc3B7cn" Content-Disposition: inline In-Reply-To: <20121123031753.GA59632@bewilderbeast.blackhelicopters.org> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: current@freebsd.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Nov 2012 03:33:01 -0000 --y0Ed1hDcWxc3B7cn Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Nov 22, 2012 at 10:17:54PM -0500, Michael W. Lucas wrote: > ...=20 > 13 * * * * /usr/local/etc/rc.d/apache22 restart >=20 > When this job runs, I get the following email: >=20 > Performing sanity check on apache22 configuration: > ... > eval: setfib: not found > /usr/local/etc/rc.d/apache22: WARNING: failed to start apache22 >=20 > If I run /usr/local/etc/rc.d/apache22 restart from the command line, I > can restart httpd without trouble. >=20 > 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]=20 Looks as if overriding PATH (in crontab) is least disruptive change that will work. Peace, david --=20 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. --y0Ed1hDcWxc3B7cn Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iEYEARECAAYFAlCu7mwACgkQmprOCmdXAD2gGwCfTneFyCAIGLDjkNZV9O5O1HxP ZTMAnRk4yF+toIYuiGXV9mtKMR2YhrPO =lLwj -----END PGP SIGNATURE----- --y0Ed1hDcWxc3B7cn--