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