Re: Fetchmail via systemd won't become a daemon

Matthias Andree <[email protected]> Mon, 30 May 2022 17:47:31 +0200
Newsgroups gmane.mail.fetchmail.user
Message-ID <[email protected]>
Am 29.05.22 um 19:44 schrieb Mauro Folcarelli:
> I configured fetchmail to run at startup, via systemd.
>
> It runs, without errors, but it exits as a "one time running" and not
> like a daemon.


Mauro,


fetchmail daemonizes itself including forking into the background and
letting go of the controlling terminal.

The proper approach would be to remove the --daemon and start fetchmail
via a systemd timer instead, or via cron.


If you want to configure fetchmail as a service, you may get away with
adding the --nodetach command line flag to the unit file's ExecStart.

HTH.


Matthias