RE: Antwort: RE: [syslog-ng] Syslog-ng with stunnel
Just like for cron called scripts, all environmental variables need to be either within the script itself or sourced by the script. cron and init scripts have no knowledge of the environmental settings that may be tied to your root (or any) shell. Also, it is best if you fully qualify program calls (/usr/local/bin/nawk vs. nawk) within scripts if you don't set your path in environmental settings. Bottom line, for the teams I've managed: if you need it for cron to work, explicitly state it. Stew -----Original Message----- From: syslog-ng-bounces@lists.balabit.hu [mailto:syslog-ng-bounces@lists.balabit.hu] On Behalf Of Stephen Tanner Sent: Thursday, June 09, 2005 9:51 AM To: Syslog-ng users' and developers' mailing list Subject: RE: Antwort: RE: [syslog-ng] Syslog-ng with stunnel Exactly what do you mean by environment being the same? The startup script works on this box if executed manually. The only thing that could possibly change would be what is actually running at the time rc starts stunnel and syslog-ng. I have place the startup script in rc2 directly after inetd starts. -----Original Message----- From: syslog-ng-bounces@lists.balabit.hu [mailto:syslog-ng-bounces@lists.balabit.hu] On Behalf Of Hermann-Josef Beckers Sent: Thursday, June 09, 2005 9:47 AM To: Syslog-ng users' and developers' mailing list Subject: Antwort: RE: [syslog-ng] Syslog-ng with stunnel syslog-ng-bounces@lists.balabit.hu schrieb am 09.06.2005 15:32:38:
I have considered this. The only problem with this would be that I can manually execute the script and everything starts up properly. It only seems to barf when executed from rc on boot.
--Stephen
Did you check that the environment is exactly the same? Yours hjb _______________________________________________ syslog-ng maillist - syslog-ng@lists.balabit.hu https://lists.balabit.hu/mailman/listinfo/syslog-ng Frequently asked questions at http://www.campin.net/syslog-ng/faq.html _______________________________________________ syslog-ng maillist - syslog-ng@lists.balabit.hu https://lists.balabit.hu/mailman/listinfo/syslog-ng Frequently asked questions at http://www.campin.net/syslog-ng/faq.html
participants (1)
-
Stew Redfield