diff options
Diffstat (limited to 'net-mail/cyrus-imapd/files/cyrus.rc7')
-rw-r--r-- | net-mail/cyrus-imapd/files/cyrus.rc7 | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/net-mail/cyrus-imapd/files/cyrus.rc7 b/net-mail/cyrus-imapd/files/cyrus.rc7 new file mode 100644 index 000000000000..348b01c04921 --- /dev/null +++ b/net-mail/cyrus-imapd/files/cyrus.rc7 @@ -0,0 +1,22 @@ +#!/sbin/openrc-run +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +depend() { + use net + use dns logger + after drac saslauthd +} + +start() { + ebegin "Starting cyrus imapd" + start-stop-daemon --start --quiet --background \ + --exec /usr/libexec/cyrusmaster -- ${CYRUS_OPTS} + eend $? +} + +stop() { + ebegin "Stopping cyrus imapd" + start-stop-daemon --stop --quiet --pidfile /run/cyrus-master.pid + eend $? +} |