INN commit: trunk (5 files)
INN Commit
rra at isc.org
Tue May 29 17:58:27 UTC 2012
Date: Tuesday, May 29, 2012 @ 10:58:26
Author: iulius
Revision: 9410
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:
trunk/contrib/sample.init.systemd
Modified:
trunk/CONTRIBUTORS
trunk/MANIFEST
trunk/contrib/README
trunk/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-28 18:43:20 UTC (rev 9409)
+++ CONTRIBUTORS 2012-05-29 17:58:26 UTC (rev 9410)
@@ -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-28 18:43:20 UTC (rev 9409)
+++ MANIFEST 2012-05-29 17:58:26 UTC (rev 9410)
@@ -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-28 18:43:20 UTC (rev 9409)
+++ contrib/README 2012-05-29 17:58:26 UTC (rev 9410)
@@ -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
Added: contrib/sample.init.systemd
===================================================================
--- contrib/sample.init.systemd (rev 0)
+++ contrib/sample.init.systemd 2012-05-29 17:58:26 UTC (rev 9410)
@@ -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
Property changes on: trunk/contrib/sample.init.systemd
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision
Added: svn:eol-style
+ native
Modified: doc/pod/install.pod
===================================================================
--- doc/pod/install.pod 2012-05-28 18:43:20 UTC (rev 9409)
+++ doc/pod/install.pod 2012-05-29 17:58:26 UTC (rev 9410)
@@ -1537,8 +1537,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