Package: fetchmail Version: 6.4.39-1 Severity: normal Tags: patch Hi,
recently systemd started to complain about fetchmail, because fetchmail provides /etc/init.d/fetchmail, but no corresponsing systemd service file for system-wide operation. Please consider using the attached two files as a base to for a system-wide fetchmail config with systemd. They are * the 'fetchmail.service' file to go into /usr/lib/systemd/system/ in order to control the service * the 'fetchmail.conf' file to go into /usr/lib/tmpfiles.d/ in order to have the/run/fetchmail directory created woth correct permissions The tmpfiles.d snippet fetchmail.conf can also be used to simplify the init.d file ;-) Thanks for maintaining fetchmail in Debian Peter -- System Information: Debian Release: trixie/sid APT prefers testing APT policy: (990, 'testing'), (500, 'stable-security'), (500, 'unstable'), (500, 'stable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 6.12.20-amd64 (SMP w/12 CPU threads; PREEMPT) Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages fetchmail depends on: ii adduser 3.149 ii debianutils 5.21 ii init-system-helpers 1.68 ii libc6 2.41-6 ii libcom-err2 1.47.2-1+b1 ii libgssapi-krb5-2 1.21.3-5 ii libkrb5-3 1.21.3-5 ii libssl3t64 3.4.1-1 ii sysvinit-utils [lsb-base] 3.14-4 Versions of packages fetchmail recommends: ii ca-certificates 20241223 Versions of packages fetchmail suggests: pn fetchmailconf <none> ii postfix [mail-transport-agent] 3.10.1-1+b1 pn resolvconf <none> -- no debconf information
# /usr/lib/systemd/system/fetchmail.service -- systemd service file for system-wide fetchmail [Unit] Documentation=man:fetchmail(1) Description=fetchmail mail retriever agent 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 ConditionPathExists=/etc/fetchmailrc ConditionPathExists=/run/fetchmail [Service] EnvironmentFile=-/etc/default/fetchmail User=fetchmail Type=exec # sort $OPTIONS after "-daemon 300" to allow overwriting the interval using $OPTIONS ExecStart=/usr/bin/fetchmail --daemon 300 $OPTIONS --nodetach -f /etc/fetchmailrc --pidfile /run/fetchmail/fetchmail.pid ExecStop=/usr/bin/fetchmail --quit Restart=always [Install] WantedBy=multi-user.target
# /usr/lib/tmpfiles.de/fetchmail.conf -- tmpfile.d snippet to set up /run/fetchmail d /run/fetchmail 0700 fetchmail nogroup