diff options
Diffstat (limited to 'net-irc/ptlink-opm/files/ptlink-opm.init.d')
-rw-r--r-- | net-irc/ptlink-opm/files/ptlink-opm.init.d | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/net-irc/ptlink-opm/files/ptlink-opm.init.d b/net-irc/ptlink-opm/files/ptlink-opm.init.d new file mode 100644 index 000000000000..70e0f0970c14 --- /dev/null +++ b/net-irc/ptlink-opm/files/ptlink-opm.init.d @@ -0,0 +1,21 @@ +#!/sbin/openrc-run +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +depend() { + need net + use dns ircd +} + +start() { + ebegin "Starting ptlink-opm" + start-stop-daemon --start --quiet --exec /usr/bin/ptlink-opm \ + --chuid ${PTLINKOPM_USER} >/dev/null + eend $? +} + +stop() { + ebegin "Shutting down ptlink-opm" + start-stop-daemon --stop --exec /usr/bin/ptlink-opm + eend $? +} |