public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Jochen Schmitt <Jochen@herr-schmitt.de>
To: git-commits@fedoraproject.org
Subject: [rpms/inn] epel10.3: User systemd scriptlets rpm macros for timers
Date: Wed, 26 Aug 2026 08:54:35 GMT	[thread overview]
Message-ID: <178773447562.1.4795147483362518092.rpms-inn-ba21ce6965cf@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/inn
Branch : epel10.3
Commit : ba21ce6965cf9d87703adda69f39cf9b0a865d56
Author : Jochen Schmitt <Jochen@herr-schmitt.de>
Date   : 2014-01-06T17:01:53+01:00
Stats  : +13/-23 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/inn/c/ba21ce6965cf9d87703adda69f39cf9b0a865d56?branch=epel10.3

Log:
User systemd scriptlets rpm macros for timers

---
diff --git a/inn.spec b/inn.spec
index b0ab867..0c0f1a5 100644
--- a/inn.spec
+++ b/inn.spec
@@ -3,7 +3,7 @@
 Summary: The InterNetNews system, an Usenet news server
 Name: inn
 Version: 2.5.3
-Release: 17%{?dist}
+Release: 18%{?dist}
 #see LICENSE file for details
 License: GPLv2+ and BSD and MIT and Public Domain
 Group: System Environment/Daemons
@@ -236,9 +236,9 @@ chown -R news:news /var/log/news*
 
 %systemd_post innd.service
 
-systemctl enable innd-expire.timer >/dev/null
-systemctl enable innd-nntpsend.timer >/dev/null
-systemctl enable innd-rnews.timer >/dev/null
+%systemd_post innd-expire.timer
+%systemd_post innd-nntpsend.timer
+%systemd_post innd-rnews.timer
 
 systemctl start innd-expire.timer
 systemctl start innd-nntpsend.timer
@@ -295,12 +295,12 @@ if [ -f /etc/syslog.conf ]; then
 fi
 
 %preun
+%systemd_preun innd.service
+
 %systemd_preun innd-expire.timer
 %systemd_preun innd-nntpsend.timer
 %systemd_preun innd-rnews.timer
 
-%systemd_preun innd.service
-
 if [ $1 = 0 ]; then
     if [ -f /var/lib/news/history.dir ]; then
        rm -f /var/lib/news/history.*
@@ -308,25 +308,12 @@ if [ $1 = 0 ]; then
 fi
 
 %postun
-systemctl stop innd-expire.timer
-systemctl stop innd-nntpsend.timer
-systemctl stop innd-rnews.timer
-
-systemctl disable innd-expire.timer
-systemctl disable innd-nntpsend.timer
-systemctl disable innd-rnews.timer
-
-# Stop/disable misconfigured timer/service untis
-systemctl stop innd-expire.service
-systemctl stop innd-nntpsend.service
-systemctl stop innd-rnews.service
-
-systemctl disable innd-expire.service
-systemctl disable innd-nntpsend.service
-systemctl disable innd-rnews.service
-
 %systemd_postun_with_restart innd.service
 
+%systemd_postun_with_restart innd-expire.timer
+%systemd_postun_with_restart innd-nntpsend.timer
+%systemd_postun_with_restart innd-rnews.timer
+
 %postun libs -p /sbin/ldconfig
 
 %files
@@ -571,6 +558,9 @@ systemctl disable innd-rnews.service
 %{_mandir}/man1/inews*
 
 %changelog
+* Sat Jan  4 2014 Jochen Schmitt <Jochen herr-schmitt de> - 2.5.3-18
+- User systemd scriptlets rpm macros for timers
+
 * Thu Jan  2 2014 Jochen Schmitt <Jochen herr-schmitt de> - 2.5.3-17
 - Add a delay for the systemd timers on boot
 - Avoid warning when stopping timers during update

                 reply	other threads:[~2026-08-26  8:54 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178773447562.1.4795147483362518092.rpms-inn-ba21ce6965cf@fedoraproject.org \
    --to=jochen@herr-schmitt.de \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox