[pkg-fetchmail-maint] Bug#612179: resolvconf tries to awaken fetchmail even if its not running leading to failed service at boot
Teodor MICU
mteodor at gmail.com
Tue Aug 30 13:57:24 UTC 2011
limit source fetchmail
reopen 612179
notfixed 612179 6.3.21-1
stop
Hi,
The following change does not have the intended effect:
Changes made to '/etc/resolvconf/update-libc.d/fetchmail' follow:
@@ -7,6 +7,6 @@
shift
done
-if [ -x /etc/init.d/fetchmail ]; then
+if [ -x /etc/init.d/fetchmail ] && [ "$(pidof fetchmail)" != "x" ]; then
/etc/init.d/fetchmail awaken
fi
The second test will always be true. You probably wanted to add "x"
before $() but I recommend to avoid such a workarround and use the
builtin test instead for non-empy string:
[ -n "$(pidof fetchmail)" ]
The test will return false if that command will return an empty
string, thus fetchmail is not running. However, some other package
maintainers have decided to rely on the return code of
"/etc/init.d/$SRV status > /dev/null" to decide if the service should
be restarted/reloaded.
Thanks
More information about the pkg-fetchmail-maint
mailing list