public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/inn] epel10.3: Rewrite systemd.service file
@ 2026-08-26  8:54 Jochen Schmitt
  0 siblings, 0 replies; only message in thread
From: Jochen Schmitt @ 2026-08-26  8:54 UTC (permalink / raw)
  To: git-commits

            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

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-08-26  8:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-26  8:54 [rpms/inn] epel10.3: Rewrite systemd.service file Jochen Schmitt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox