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: Rewrite systemd.service file
Date: Wed, 26 Aug 2026 08:54:16 GMT	[thread overview]
Message-ID: <178773445609.1.10292941309320235830.rpms-inn-e05e3b063d71@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/inn
            Branch : epel10.3
            Commit : e05e3b063d71aea470e0e9b3de9aff5642b11799
            Author : Jochen Schmitt <Jochen@herr-schmitt.de>
            Date   : 2011-09-01T15:18:45+02:00
            Stats  : +9/-38 in 5 file(s)
            URL    : https://src.fedoraproject.org/rpms/inn/c/e05e3b063d71aea470e0e9b3de9aff5642b11799?branch=epel10.3

            Log:
            Rewrite systemd.service file
Allow login to news user account

---
diff --git a/inn.spec b/inn.spec
index 10b4100..f060120 100644
--- a/inn.spec
+++ b/inn.spec
@@ -1,7 +1,7 @@
 Summary: The InterNetNews system, an Usenet news server
 Name: inn
 Version: 2.5.2
-Release: 13%{?dist}
+Release: 14%{?dist}
 #see LICENSE file for details
 License: GPLv2+ and BSD and MIT and Public Domain
 Group: System Environment/Daemons
@@ -13,9 +13,6 @@ Source5: inn-cron-rnews
 Source7: inn-cron-nntpsend
 Source10: inn-faq.tar.gz
 Source20: innd.service
-Source21: prepare-innd
-Source22: start-innd
-Source23: stop-innd
 Patch1:  inn-2.4.3.rh.patch
 Patch4: inn-2.5.1.pie.patch
 Patch6: inn-2.5.2.posix.patch
@@ -94,7 +91,7 @@ This package contains dynamic libraries provided by INN project
 %pre
 getent group news >/dev/null || groupadd -g 13 -r news
 getent passwd news >/dev/null || \
-useradd -r -u 9 -g news -d /etc/news -s /sbin/nologin \
+useradd -r -u 9 -g news -d /etc/news  \
 -c "News server user" news
 exit 0
 
@@ -178,10 +175,6 @@ install %{SOURCE7} $RPM_BUILD_ROOT%{_sysconfdir}/cron.hourly/inn-cron-nntpsend
 mkdir -p $RPM_BUILD_ROOT%{_unitdir}
 install -p -m 0644 %{SOURCE20} $RPM_BUILD_ROOT%{_unitdir}
 
-install -p -m 0644 %{SOURCE21} $RPM_BUILD_ROOT/lib/systemd/
-install -p -m 0644 %{SOURCE22} $RPM_BUILD_ROOT/lib/systemd/
-install -p -m 0644 %{SOURCE23} $RPM_BUILD_ROOT/lib/systemd/
-
 
 tar xf %{SOURCE10}
 mv inn.html FAQ.html
@@ -304,9 +297,6 @@ fi
 %{_sysconfdir}/cron.hourly/inn-cron-nntpsend
 %{_sysconfdir}/cron.daily/inn-cron-expire
 %{_unitdir}/innd.service
-/lib/systemd/prepare-innd
-/lib/systemd/start-innd
-/lib/systemd/stop-innd
 %defattr(-,news,news,-)
 # /etc/news config files
 %dir %{_sysconfdir}/news
@@ -528,6 +518,10 @@ fi
 %{_mandir}/man1/inews*
 
 %changelog
+* Thu Sep  1 2011 Jochen Schmitt <Jochen herr-schmitt de> - 2.5.2-14
+- Rewrite systemd.service file
+- Allow login to news user account
+
 * Thu Jul 21 2011 Petr Sabata <contyk@redhat.com> - 2.5.2-13
 - Perl mass rebuild
 

diff --git a/innd.service b/innd.service
index 41341f7..8a4ed9d 100644
--- a/innd.service
+++ b/innd.service
@@ -6,9 +6,9 @@ ConditionPathExists=/etc/news/inn.conf
 [Service]
 PIDFile=/run/news/innd.pid
 Type=forking
-ExecStartPre=/lib/systemd/prepare-innd
-ExecStart=/lib/systemd/start-innd
-ExecStop=/lib/systemd/stop-innd
+ExecStartPre=/bin/mkdir -p /run/news ; /bin/chown -f news:news /run/news
+ExecStart=/bin/su -m  news -c /usr/libexec/news/rc.news
+ExecStop=/bin/su -m  news -c '/usr/libexec/news/rc.news stop'
 KillMode=control-group
 
 [Install]

diff --git a/prepare-innd b/prepare-innd
deleted file mode 100644
index c3a97c0..0000000
--- a/prepare-innd
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/bin/bash
-
-mkdir -p /run/news
-chown news:news /run/news

diff --git a/start-innd b/start-innd
deleted file mode 100644
index f414ebb..0000000
--- a/start-innd
+++ /dev/null
@@ -1,9 +0,0 @@
-#!/bin/bash
-
-. /usr/libexec/news/innshellvars
-
-unset LANG
-unset LC_COLLATE
-
-runuser -s /bin/bash news /usr/libexec/news/rc.news
-

diff --git a/stop-innd b/stop-innd
deleted file mode 100644
index 087ba09..0000000
--- a/stop-innd
+++ /dev/null
@@ -1,10 +0,0 @@
-#!/bin/bash
-
-. /usr/libexec/news/innshellvars
-
-if [ -f /run/news/innd.pid ]; then
-   "${NEWSBIN}/ctlinnd" -s -t 60 throttle shutting down
-   sleep 30
-   "${NEWSBIN}/ctlinnd" -s -t 60 shutdown  shutting down
-fi
-    
\ No newline at end of file

                 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=178773445609.1.10292941309320235830.rpms-inn-e05e3b063d71@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