Re: Parar fetchmail
Juan Guil escribe:
> Hola:
> Me gustaria hacer una cosa:
> Tengo en mi linux arrancado el fetchmail con la opcion -d (corriendo como si
> fuera un demonio) y se ejecuta cada 10 minutos.
> Alguien sabe como se para de una forma oficial sin tener que utilizar el
> killall fetchmail ?
>
killall es oficial, también es oficial < kill `pidof fetchmail` >,
algo más engorroso sería:
#!/bin/sh
DAEMON=/usr/bin/fetchmail
NAME=fetchmail
/sbin/start-stop-daemon --stop --quiet --pidfile /var/run/$NAME.pid
--exec $DAEMON
--
agr@lab.inf.uc3m.es
agr1@arrakis.es
Reply to: