Re: Correct way to stop fetchmail

2025-02-17 Thread Jonathan Dowland
Is there a fetchmail.timer unit as well as a .service unit? Or, could you have a crontab entry that is invoking it? -- Please do not CC me for listmail. 👱🏻 Jonathan Dowland ✎j...@debian.org 🔗 https://jmtd.net

Re: Correct way to stop fetchmail

2025-02-16 Thread Greg
On 2024-12-28, Roger Price wrote: > > 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. I think fetchmail is both old and deprecat

Re: Correct way to stop fetchmail

2024-12-29 Thread mick.crane
On 2024-12-28 19:08, Greg Wooledge wrote: Perhaps there's a cron job that starts it. I use getmail with various getmailrc files started by cron. Perhaps OP did that with fetchmail and forgot. crontab -e would show mick

Re: Correct way to stop fetchmail

2024-12-29 Thread Max Nikulin
On 29/12/2024 10:18, John Hasler wrote: On Unstable: toncho/~ 20 systemctl cat fetchmail.service # /run/systemd/generator.late/fetchmail.service ^ # Automatically generated by systemd-sysv-generator ^ [...] [Service] Type=forking Re

Re: Correct way to stop fetchmail

2024-12-29 Thread Greg Wooledge
On Sun, Dec 29, 2024 at 22:44:56 +0700, Max Nikulin wrote: > John posted content of the service file *generated* for SysV init script. A. I missed that context.

Re: Correct way to stop fetchmail

2024-12-29 Thread Max Nikulin
On 29/12/2024 20:50, Andy Smith wrote: On Sun, Dec 29, 2024 at 02:16:42PM +0100, poc...@homemail.com wrote: https://gitlab.archlinux.org/archlinux/packaging/packages/fetchmail What is your point? There is a native systemd service unit for fetchmail in the next release of Debian. Your constant

Re: Correct way to stop fetchmail

2024-12-29 Thread Andy Smith
Hi, On Sun, Dec 29, 2024 at 09:29:58AM -0500, Greg Wooledge wrote: > On Sun, Dec 29, 2024 at 13:50:56 +, Andy Smith wrote: > > On Sun, Dec 29, 2024 at 02:16:42PM +0100, poc...@homemail.com wrote: > > > https://gitlab.archlinux.org/archlinux/packaging/packages/fetchmail > > > > What is your po

Re: Correct way to stop fetchmail

2024-12-29 Thread Greg Wooledge
On Sun, Dec 29, 2024 at 09:50:31 +0100, Roger Price wrote: > On Debian 12 the command systemctl status fetchmail now has a "CGroup" entry: > > ● fetchmail.service - LSB: init-Script for system wide fetchmail daemon > Loaded: loaded (/etc/init.d/fetchmail; generated) > Active: active (run

Re: Correct way to stop fetchmail

2024-12-29 Thread Greg Wooledge
On Sun, Dec 29, 2024 at 13:50:56 +, Andy Smith wrote: > Hello, > > On Sun, Dec 29, 2024 at 02:16:42PM +0100, poc...@homemail.com wrote: > > https://gitlab.archlinux.org/archlinux/packaging/packages/fetchmail > > What is your point? There is a native systemd service unit for fetchmail > in the

Re: Correct way to stop fetchmail

2024-12-29 Thread Andy Smith
Hello, On Sun, Dec 29, 2024 at 02:16:42PM +0100, poc...@homemail.com wrote: > https://gitlab.archlinux.org/archlinux/packaging/packages/fetchmail What is your point? There is a native systemd service unit for fetchmail in the next release of Debian. Your constant off-topic proselytizing of Arch h

Re: Correct way to stop fetchmail

2024-12-29 Thread Nicolas George
poc...@homemail.com (12024-12-29): > ExecStart=/usr/bin/fetchmail --pidfile /run/fetchmail/fetchmailrc.pid -f > /etc/fetchmailrc Debian uses --nodetach, which is a much better use of modern service monitoring. Regards, -- Nicolas George

Re: Correct way to stop fetchmail

2024-12-29 Thread pocket
> Sent: Saturday, December 28, 2024 at 10:18 PM > From: "John Hasler" > To: debian-user@lists.debian.org > Subject: Re: Correct way to stop fetchmail > > On Unstable: > > toncho/~ 20 systemctl cat fetchmail.service > # /run/systemd/generator.late/fetchmai

Re: Correct way to stop fetchmail

2024-12-29 Thread Roger Price
On Sun, 29 Dec 2024, Michael wrote: then make sure you run systemctl disable fetchmail.service otherwise it will start again at next boot. Here is what happened when i tried "disable" on this Debian 11 machine. root@titan ~ systemctl disable fetchmail fetchmail.service is not a native service

Re: Correct way to stop fetchmail

2024-12-29 Thread Roger Price
On Sun, 29 Dec 2024, Michael wrote: On Saturday, December 28, 2024 6:56:09 PM CET, Roger Price wrote: And the fetchma+ process disappeared - I hope it no longer rises from the dead. then make sure you run systemctl disable fetchmail.service otherwise it will start again at next boot. In /et

Re: Correct way to stop fetchmail

2024-12-29 Thread Michael
On Sunday, December 29, 2024 11:30:30 AM CET, Roger Price wrote: On Sun, 29 Dec 2024, Michael wrote: I assume this also prevents fetchmail from restarting. correct, as long as the init script is called by systemd and nothing changes in said script. to disable the service prevents it from be

Re: Correct way to stop fetchmail

2024-12-29 Thread Michael
On Saturday, December 28, 2024 6:56:09 PM CET, Roger Price wrote: And the fetchma+ process disappeared - I hope it no longer rises from the dead. then make sure you run systemctl disable fetchmail.service otherwise it will start again at next boot. greetings...

Re: Correct way to stop fetchmail

2024-12-29 Thread Roger Price
On Sun, 29 Dec 2024, Max Nikulin wrote: Commands that might help to discover what actually happened journalctl -u fetchmail.service Dec 28 10:37:58 titan systemd[1]: Stopping LSB: init-Script for system wide fetchmail daemon... Dec 28 10:37:58 titan fetch

Re: Correct way to stop fetchmail

2024-12-28 Thread John Hasler
On Unstable: toncho/~ 20 systemctl cat fetchmail.service # /run/systemd/generator.late/fetchmail.service # Automatically generated by systemd-sysv-generator [Unit] Documentation=man:systemd-sysv-generator(8) SourcePath=/etc/init.d/fetchmail Description=LSB: init-Script for system wide fetchmail d

Re: Correct way to stop fetchmail

2024-12-28 Thread Greg Wooledge
On Sun, Dec 29, 2024 at 09:40:44 +0700, Max Nikulin wrote: > On 28/12/2024 23:47, Greg Wooledge wrote: > > On Sat, Dec 28, 2024 at 17:21:08 +0100, Roger Price wrote: > > > root@titan ~ /etc/init.d/fetchmail --quit > > > Not starting fetchmail daemon, disabled via /etc/default/fetchmail. > > >

Re: Correct way to stop fetchmail

2024-12-28 Thread Max Nikulin
On 28/12/2024 23:47, Greg Wooledge wrote: On Sat, Dec 28, 2024 at 17:21:08 +0100, Roger Price wrote: root@titan ~ /etc/init.d/fetchmail --quit Not starting fetchmail daemon, disabled via /etc/default/fetchmail. The correct way to use a legacy sysv-rc init.d script to stop a service is:

Re: Correct way to stop fetchmail

2024-12-28 Thread Greg Wooledge
On Sat, Dec 28, 2024 at 22:59:19 +0100, Nicolas George wrote: > Roger Price (12024-12-28): > > ● fetchmail.service - LSB: init-Script for system wide fetchmail daemon > > Loaded: loaded (/etc/init.d/fetchmail; generated) > > Active: inactive (dead) since Sat 2024-12-28 10:37:58 CET; 6h a

Re: Correct way to stop fetchmail

2024-12-28 Thread Nicolas George
Roger Price (12024-12-28): > ● fetchmail.service - LSB: init-Script for system wide fetchmail daemon > Loaded: loaded (/etc/init.d/fetchmail; generated) > Active: inactive (dead) since Sat 2024-12-28 10:37:58 CET; 6h ago >Docs: man:systemd-sysv-generator(8) > Process: 1250 Ex

Re: Correct way to stop fetchmail

2024-12-28 Thread Roger Price
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 wrote: but fetchmail goes on fetching mail. What is the correct way of stopping fetchmail? Perhaps there is a fetchmail.timer unit t

Re: Correct way to stop fetchmail

2024-12-28 Thread Greg Wooledge
On Sat, Dec 28, 2024 at 18:56:09 +0100, Roger Price wrote: > I tried 4 times. then I tried > > /etc/init.d/fetchmail stop > > but although dead for 6 hours, fetchmail continued to fetch mails. > So I tried > > root@titan ~ ps -ef | grep fetch > fetchma+1264 1 0 Sep25 ?00:06

Re: Correct way to stop fetchmail

2024-12-28 Thread Greg Wooledge
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 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

Re: Correct way to stop fetchmail

2024-12-28 Thread Charles Curley
On Sat, 28 Dec 2024 17:21:08 +0100 (CET) Roger Price 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? systemctl status fetchmail.timer You might also

Re: Correct way to stop fetchmail

2024-12-28 Thread Roger Price
Thanks for your replies. I tried systemctl stop fetchmail.service I tried 4 times. then I tried /etc/init.d/fetchmail stop but although dead for 6 hours, fetchmail continued to fetch mails. So I tried root@titan ~ ps -ef | grep fetch fetchma+1264 1 0 Sep25 ?00:06:33 /u

Re: Correct way to stop fetchmail

2024-12-28 Thread Jerome BENOIT
Hi, have you try /etc/init.d/fetchmail stop ? Cheers, Jerome On 28/12/2024 17:21, Roger Price wrote: I would like to stop fetchmail on Debian 11.  I tried command systemctl stop fetchmail and system status fetchmail reported  ● fetchmail.service - LSB: init-Script for system wide fetchmail

Re: Correct way to stop fetchmail

2024-12-28 Thread Greg Wooledge
On Sat, Dec 28, 2024 at 17:21:08 +0100, Roger Price wrote: > ● fetchmail.service - LSB: init-Script for system wide fetchmail daemon The correct way to stop a systemd service whose name you know is: systemctl stop fetchmail.service If you're entirely new to systemd, you can get by with: