diff options
Diffstat (limited to 'net-mail/qpopper/files/qpopper.init.d')
-rw-r--r-- | net-mail/qpopper/files/qpopper.init.d | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/net-mail/qpopper/files/qpopper.init.d b/net-mail/qpopper/files/qpopper.init.d new file mode 100644 index 000000000000..45e55148ac10 --- /dev/null +++ b/net-mail/qpopper/files/qpopper.init.d @@ -0,0 +1,20 @@ +#!/sbin/openrc-run +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +depend() { + need net +} + +start() { + ebegin "Starting qpopper" + start-stop-daemon --start --quiet --background \ + --exec /usr/sbin/popper -- -f /etc/qpopper.conf + eend $? +} + +stop() { + ebegin "Stopping qpopper" + start-stop-daemon --stop --quiet --exec /usr/sbin/popper + eend $? +} |