On 02.12.2012 20:59, Salvo Tomaselli wrote:
> I did as you asked in the /etc/init.d/fetchmail script and when i do a 
> restart, in the log nothing appears.
> 
> If i do
> #service fetchmail stop, after the change i have this:
> fetchmail.service - LSB: init-Script for system wide fetchmail daemon
>           Loaded: loaded (/etc/init.d/fetchmail)
>           Active: failed (Result: exit-code) since Sun, 02 Dec 2012 20:58:25 
> +0100; 11s ago
>          Process: 23870 ExecStop=/etc/init.d/fetchmail stop (code=exited, 
> status=1/FAILURE)

Could you post your /etc/init.d/fetchmails script with the changes you
did? I assume you missed to specify the required options for --retry
(see man start-stop-daemon).

I'd suggest using something like the following:

if start-stop-daemon -K --retry=TERM/30/KILL/5 -o -q -p $PIDFILE -x
$DAEMON -u $USER; then

Fwiw, the sleep 1 in restart) looks like on of those dirty hacks to
workaround race conditions.

-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to