fetchmail service do not stop cleanly;it ignores TERM signal

José García Juanino jjuanino at gmail.com
Tue Mar 29 21:34:33 UTC 2016


I have noticed that fetchmail service hangs in stop phase. I have the
following in rc.conf:


When I have to restart the service, it hangs forever:

# service fetchmail restart
===> fetchmail user: juanino
Stopping fetchmail.
Waiting for PIDS: 9284

The only way to stop the service is to send the INT (or KILL) signal:

# pkill -INT fetchmail

It seems to be that is ignoring TERM (or HUP) signal.

Ugly workaround:

echo "sig_stop=\"INT\" " > /etc/rc.conf.d/fetchmail

to force the INT signal instead of TERM.

The same issue applies to some other services as polipo. It is not
clear for me if this issue is freebsd specific. Any idea?

More information about the freebsd-questions mailing list