On Sun, Feb 02, 2003 at 08:02:13PM +0100, Ralf S. Engelschall wrote: >On Sun, Feb 02, 2003, Bill Campbell wrote: > >> Running openpkg-20030114-20030114 and mysql-3.23.54a-20030116, I get an >> error ``shtool: command not found''. >> >> Should %[l_prefix}/etc/rc be putting %{l_prefix}/lib/openpkg in PATH when >> running cron jobs? > >Exactly this is done in %{l_prefix}/etc/rc, line 89: > >| PATH="@l_prefix@/lib/openpkg:$PATH" > >Hmmm... but you're now already the second guy who encountered this. I >think the problem is that rc.mysql runs the cronjob under the restricted >user and for this it performs a "su -" which in turn resets the >environment. We recently switched to "su -" from just "su" for other >reasons (I cannot remember what it was, but there was a good reason for >using a login shell). Hmmm... as a result, all cronjobs not run under >root are broken. MySQL is just an example of this problem. > >I've now added a little workaround for this subtle problem to the rc >command starting with openpkg-20030202-20030202. Just try it out. >Details: http://cvs.openpkg.org/chngview?cn=7230
Building it now. Looks reasonable. Bill -- INTERNET: [EMAIL PROTECTED] Bill Campbell; Celestial Software LLC UUCP: camco!bill PO Box 820; 6641 E. Mercer Way FAX: (206) 232-9186 Mercer Island, WA 98040-0820; (206) 236-1676 URL: http://www.celestial.com/ ``There is nothing as stupid as an educated man if you get him off the thing he was educated in.'' Will Rogers ______________________________________________________________________ The OpenPKG Project www.openpkg.org Developer Communication List [EMAIL PROTECTED]