INN commit: branches/2.5 (5 files)
INN Commit
rra at isc.org
Tue May 29 17:59:05 UTC 2012
Date: Tuesday, May 29, 2012 @ 10:59:04
Author: iulius
Revision: 9411
add a sample systemd-like init script
Include in the contrib directory a systemd-like init script for INN.
Thanks to Jochen Schmitt (co-maintainer of the inn package of the Fedora
project) for the proposal.
Added:
branches/2.5/contrib/sample.init.systemd
(from rev 9410, trunk/contrib/sample.init.systemd)
Modified:
branches/2.5/CONTRIBUTORS
branches/2.5/MANIFEST
branches/2.5/contrib/README
branches/2.5/doc/pod/install.pod
-----------------------------+
CONTRIBUTORS | 2 +-
MANIFEST | 1 +
contrib/README | 4 ++++
contrib/sample.init.systemd | 20 ++++++++++++++++++++
doc/pod/install.pod | 5 +++--
5 files changed, 29 insertions(+), 3 deletions(-)
Modified: CONTRIBUTORS
===================================================================
--- CONTRIBUTORS 2012-05-29 17:58:26 UTC (rev 9410)
+++ CONTRIBUTORS 2012-05-29 17:59:04 UTC (rev 9411)
@@ -274,4 +274,4 @@
S.P. Zeidler, Nix, Florian Schlichting, Torsten Jerzembeck, Harald Dunkel,
Lars Magne Ingebrigtsen, Sam Varshavchik, Matthew Vernon, Ian Jackson,
Edmund H. Ramm, Raphael Barrois, Bo Lindbergh, Matthias Meyser,
-Dennis Preiser, Paolo Amoroso, Dennis Davis, River Tarnell
+Dennis Preiser, Paolo Amoroso, Dennis Davis, River Tarnell, Jochen Schmitt
Modified: MANIFEST
===================================================================
--- MANIFEST 2012-05-29 17:58:26 UTC (rev 9410)
+++ MANIFEST 2012-05-29 17:59:04 UTC (rev 9411)
@@ -79,6 +79,7 @@
contrib/reset-cnfs.c Reset the state parts of a CNFS buffer
contrib/respool.c Respool articles in the storage manager
contrib/sample.init.script Example SysV-style init.d script
+contrib/sample.init.systemd Example systemd-style init script
contrib/stathist.in Parse history statistics
contrib/thdexpire.in Dynamic expire for timehash and timecaf
contrib/tunefeed.in Tune a feed by comparing active files
Modified: contrib/README
===================================================================
--- contrib/README 2012-05-29 17:58:26 UTC (rev 9410)
+++ contrib/README 2012-05-29 17:59:04 UTC (rev 9411)
@@ -148,6 +148,10 @@
the system since INN and related programs can be file descriptor hogs.
It then starts INN.
+sample.init.systemd
+
+ Sample systemd-style init script for INN.
+
stathist
Parses and summarizes the log files created by the history profiling
Copied: branches/2.5/contrib/sample.init.systemd (from rev 9410, trunk/contrib/sample.init.systemd)
===================================================================
--- contrib/sample.init.systemd (rev 0)
+++ contrib/sample.init.systemd 2012-05-29 17:59:04 UTC (rev 9411)
@@ -0,0 +1,20 @@
+# $Id$
+#
+# This is a simple, bare-bones example of a systemd-style init script for INN.
+#
+[Unit]
+Description=InterNetNews Daemon
+After=syslog.target network.target
+ConditionPathExists=/etc/news/inn.conf
+
+[Service]
+User=news
+PermissionsStartOnly=true
+PIDFile=/run/news/innd.pid
+Type=forking
+ExecStart=/usr/libexec/news/rc.news
+ExecStop=/bin/su -m news -c '/usr/libexec/news/rc.news stop'
+KillMode=control-group
+
+[Install]
+WantedBy=multi-user.target
Modified: doc/pod/install.pod
===================================================================
--- doc/pod/install.pod 2012-05-29 17:58:26 UTC (rev 9410)
+++ doc/pod/install.pod 2012-05-29 17:59:04 UTC (rev 9411)
@@ -1545,8 +1545,9 @@
su news -c '<pathbin in inn.conf>/rc.news stop'
-In the F<contrib> directory of this source tree is a sample init script
-for people using System V-style init.d directories.
+In the F<contrib> directory of this source tree, two sample init scripts are provided: one
+for people using System V-style init.d directories, and another for people
+using systemd-style init scripts.
If you wish to use TLS/SSL for your readers, you need to start a second
B<nnrpd> to listen to these connections to NNTPS port 563 and put something
More information about the inn-committers
mailing list