summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-nntp/inn/files/innd-r1')
-rw-r--r--net-nntp/inn/files/innd-r123
1 files changed, 23 insertions, 0 deletions
diff --git a/net-nntp/inn/files/innd-r1 b/net-nntp/inn/files/innd-r1
new file mode 100644
index 000000000000..1169a6755b8b
--- /dev/null
+++ b/net-nntp/inn/files/innd-r1
@@ -0,0 +1,23 @@
+#!/sbin/runscript
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+depend() {
+ need net
+}
+
+start() {
+ ebegin "Starting ${SVCNAME}"
+ checkpath -d -m 0755 -o news:news /run/news
+ start-stop-daemon --start --user news --pidfile /run/news/${SVCNAME}.pid \
+ --exec /usr/lib/news/bin/rc.news
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping ${SVCNAME}"
+ start-stop-daemon --start --user news --exec /usr/lib/news/bin/rc.news -- stop
+ sleep 2
+ eend $?
+}