[pkg-fetchmail-maint] Bug#380459: /etc/init.d/fetchmail awaken
really doesn't anything
Riccardo Stagni
unriccio at email.it
Sun Jul 30 11:27:53 UTC 2006
Package: fetchmail
Version: 6.3.4-1
Severity: normal
I tried to awake the fetchmail process, obtaining this result:
---
eddie:~# /etc/init.d/fetchmail awaken
Awakening mail retrieval agent: fetchmaileddie:~#
---
First of all it isn't cosmetically pretty! :)
In second place seems "something weird is happening"(tm). I started
it with sh -x:
---
[...]
+ echo -n 'Awakening mail retrieval agent: fetchmail'
Awakening mail retrieval agent: fetchmail+ '[' -r /var/run/fetchmail/fetchmail.pid ']'
+ su -c /usr/bin/fetchmail fetchmail
eddie:~#
---
Then I edited the script and removed error redirecting, changing
su -c $DAEMON $USER <&- >/dev/null 2>&1
to
su -c $DAEMON $USER
(redirecting stderr to /dev/null should be forbidden by law), and this
error was showed: "fetchmail: no mailservers have been specified", that
seems to be related with the absence of the command-line argument -f.
Infact, starting fetchmail by-hand with
su fetchmail -c "fetchmail"
mutters about the same error, while using
su fetchmail -c "fetchmail -f /etc/fetchmailrc"
works fine.
Because of the presence of a fetchmail process in background (so in the
awakening you can't start it with the same $OPTIONS), perhaps a good
solution may be using two variables, $OPTIONS and $AWAKENOPTIONS. The
latter should contain only "-f $CONFFILE" and --syslog (unless the user
specified "set no syslog", like you do for $OPTIONS).
regards,
Riccardo
-- System Information:
Debian Release: testing/unstable
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.8-2-686
Locale: LANG=it_IT at euro, LC_CTYPE=it_IT at euro (charmap=ISO-8859-15)
Versions of packages fetchmail depends on:
ii adduser 3.87 Add and remove users and groups
ii debianutils 2.16.2 Miscellaneous utilities specific t
ii gettext 0.14.6-1 GNU Internationalization utilities
ii libc6 2.3.6-15 GNU C Library: Shared libraries
ii libssl0.9.8 0.9.8b-2 SSL shared libraries
Versions of packages fetchmail recommends:
ii ca-certificates 20050804 Common CA Certificates PEM files
-- debconf information:
* fetchmail/initdefaultswarn:
* fetchmail/runasroot: false
* fetchmail/confwarn:
fetchmail/fetchidswarn:
* fetchmail/systemwide: true
More information about the pkg-fetchmail-maint
mailing list