> Sent: Saturday, December 28, 2024 at 10:18 PM
> From: "John Hasler" <j...@sugarbit.com>
> 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/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 daemon
> Before=multi-user.target
> Before=multi-user.target
> Before=multi-user.target
> Before=graphical.target
> After=network-online.target
> After=remote-fs.target
> After=mail-transport-agent.target
> After=postfix.service
> After=exim4.service
> After=nss-lookup.target
> Wants=network-online.target
>
> [Service]
> Type=forking
> Restart=no
> TimeoutSec=5min
> IgnoreSIGPIPE=no
> KillMode=process
> GuessMainPID=no
> RemainAfterExit=yes
> SuccessExitStatus=5 6
> ExecStart=/etc/init.d/fetchmail start
> ExecStop=/etc/init.d/fetchmail stop
>
>

https://gitlab.archlinux.org/archlinux/packaging/packages/fetchmail

Description=Fetchmail
After=network.target

[Service]
User=fetchmail
ExecStart=/usr/bin/fetchmail --pidfile /run/fetchmail/fetchmailrc.pid -f 
/etc/fetchmailrc
RestartSec=1

[Install]
WantedBy=multi-user.target



Reply via email to