diff --git a/fetchmail.service b/fetchmail.service index f59312c8524424c6fc56f2ae74e0a46e152dddca..acda419d0784cdb8da0b51044bfe5d22d94b2f76 100644 --- a/fetchmail.service +++ b/fetchmail.service @@ -1,10 +1,14 @@ [Unit] Description=A remote-mail retrieval utility +Documentation=https://www.fetchmail.info After=local-fs.target network.target [Service] User=mail +Type=simple ExecStart=/usr/bin/fetchmail -d 300 --fetchmailrc /etc/fetchmailrc.example +ExecStop=/usr/bin/fetchmail --quit +SuccessExitStatus=1 2 3 4 5 6 7 8 9 10 RestartSec=1 [Install] diff --git a/fetchmail.spec b/fetchmail.spec index e1f6f90954b1f6719145c2a3a5f3d002fcbe3872..bee9d4071683e56383e7bedd1d6c19b541c4cb08 100644 --- a/fetchmail.spec +++ b/fetchmail.spec @@ -1,7 +1,7 @@ Summary: A remote mail retrieval and forwarding utility Name: fetchmail Version: 6.4.39 -Release: 1 +Release: 2 Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.xz Source1: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.xz.asc # systemd service file @@ -62,6 +62,9 @@ rm -f $RPM_BUILD_ROOT%{python3_sitelib}/__pycache__/fetchmailconf* %config(noreplace) %attr(0600, mail, mail) %{_sysconfdir}/fetchmailrc.example %changelog +* Mon Dec 2 2024 April_Zhao - 6.4.39-1 +- update fetchmail.service to Meet the requirements of fetchmail + * Tue Aug 13 2024 maqi - 6.4.39-1 - Upgrade to 6.4.39