[Bug 1033081] fetchmail hardcoded to use log file - syslogging thus unavailable
http://bugzilla.opensuse.org/show_bug.cgi?id=1033081 http://bugzilla.opensuse.org/show_bug.cgi?id=1033081#c6 --- Comment #6 from Jens Mozdzen <jens.mozdzen@suse.com> --- (In reply to Jens Mozdzen from comment #5)
Why not just use a variable to set the daemon options, and make "-L /var/log/fetchmail" the default?
re-reading above, I maybe ought to be more specific. If you prefer an explicit logfile variable in sysconfig, why not put the following into the shipped version of /etc/sysconfig/fetchmail FETCHMAIL_DEFAULT_LOGFILE="/var/log/fetchmail" and change fetchmail.exec to if [ ! -z "$FETCHMAIL_DEFAULT_LOGFILE" ] ; then if [ "$FETCHMAIL_DEFAULT_LOGFILE" = "syslog" ]; then OPTS="$OPTS --syslog" else OPTS="$OPTS -L $FETCHMAIL_DEFAULT_LOGFILE" fi fi That way the admin can decide to change FETCHMAIL_DEFAULT_LOGFILE to empty, which would omit any logging option on start. You'd keep your "syslog" magic value and the default would match the current behaviour. -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com