* Udo Mueller <[EMAIL PROTECTED]> [11.03.02 20:19]: > * Thomas Huemmler <[EMAIL PROTECTED]> [11-03-02 17:04]: > > In *meiner* /etc/init.d/fetchmail (aka > > /usr/share/doc/fetchmail/contrib/debian_rc) ist das aber leider noch > > nicht vorgesehen. Und wenn ich an den Parameter DAEMON dort die Option > > *-f /root/.fetchmailrc* dranh�nge, startet fetchmail auch nicht als > > Daemon. > Dank Udos Hinweis habe ich die /usr/share/doc/fetchmail/contrib/debian_rc aus fetchmail_5.3.3-3_i386.deb entsprechend ge�ndert, so dass es nun funzt. Die Fetchmail-Pakete aus testing/unstable sind nicht betroffen, die l�sen das anders. F�r alle, die es interessiert, hier das ge�nderte Skript:
#!/bin/sh
#
# To start fetchmail as a system service, copy this file to
# /etc/init.d/fetchmail and run "update-rc.d fetchmail
# defaults 99". A fetchmailrc file containg hosts and
# passwords for all local users should be placed in /root
# and should contain a line of the form "set daemon <nnn>".
#
# To remove the service, delete /etc/init.d/fetchmail and run
# "update-rc.d fetchmail remove".
DAEMON=/usr/bin/fetchmail
OPTIONS="-f /etc/fetchmailrc"
set -e
test -f $DAEMON || exit 0
case "$1" in
start)
echo -n "Starting mail retrieval agent: "
if start-stop-daemon --start --quiet --exec $DAEMON -- $OPTIONS; then echo
"fetchmail."
else echo "fetchmail already running."; fi
;;
stop)
echo -n "Stopping mail retrieval agent: "
start-stop-daemon --stop --quiet --exec $DAEMON
echo "fetchmail."
;;
force-reload|restart)
echo -n "Restarting mail retrieval agent: "
start-stop-daemon --stop --quiet --exec $DAEMON
start-stop-daemon --start --quiet --exec $DAEMON -- $OPTIONS
echo "fetchmail."
;;
*)
echo "Usage: /etc/init.d/fetchmail {start|stop|restart}"
exit 1
;;
esac
exit 0
# eof
To whom it may concern...
Thomas
--
Thomas H�mmler * [EMAIL PROTECTED] * http://www.huemmler.de
msg03674/pgp00000.pgp
Description: PGP signature

