On Sat, 28 Dec 2024, Greg Wooledge wrote:

On Sat, Dec 28, 2024 at 11:36:44 -0700, Charles Curley wrote:
On Sat, 28 Dec 2024 17:21:08 +0100 (CET)
Roger Price <deb...@rogerprice.org> wrote:

but fetchmail goes on fetching mail.  What is the correct way of
stopping fetchmail?

Perhaps there is a fetchmail.timer unit that is starting up
fetchmail.service from time to time?
Perhaps there's a cron job that starts it.

Debian 11 dpkg -L fetchmail does not show any timer unit or other cron device that might keep a "dead" service alive.

systemctl status fetchmail.timer

No such unit in Debian 11.

You might also look at /usr/share/doc/fetchmail/README.systemd

I found nothing that keeps officially "dead" services alive.

 root@titan ~ ps -ef | grep fetch
 fetchma+    1264       1  0 Sep25 ?        00:06:33 /usr/bin/fetchmail -f
          /etc/fetchmailrc --pidfile /var/run/fetchmail/fetchmail.pid --syslog
 root@titan ~ kill 1264

That process had been running for three months.(*)  It wasn't "dead for 6
hours" at the moment you ran those commands.

The process was alive for three months until I typed systemctl stop fetchmail. 6 hours later I typed systemctl status fetchmail and systemd told me that the still running process had been "dead" for 6 hours.

# (*) Unless of course your system clock is massively wrong.

:-)  I rely on the Network Time Protocol (NTP).  An excellent service.

But the problem is solved.  Command kill came to the rescue.

Roger

Reply via email to