diff options
Diffstat (limited to 'net-mail/cyrus-imapd/files/cyrus.rc6')
-rw-r--r-- | net-mail/cyrus-imapd/files/cyrus.rc6 | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/net-mail/cyrus-imapd/files/cyrus.rc6 b/net-mail/cyrus-imapd/files/cyrus.rc6 new file mode 100644 index 000000000000..74a819dc0b62 --- /dev/null +++ b/net-mail/cyrus-imapd/files/cyrus.rc6 @@ -0,0 +1,22 @@ +#!/sbin/runscript +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# $Header: /var/cvsroot/gentoo-x86/net-mail/cyrus-imapd/files/cyrus.rc6,v 1.1 2002/07/13 21:56:01 raker Exp $ + +depend() { + need net + after saslauthd +} + +start() { + ebegin "Starting Cyrus imapd" + start-stop-daemon --start --quiet --background --make-pidfile --pidfile /var/run/cyrus.pid --exec /usr/cyrus/bin/master + eend $? +} + +stop() { + ebegin "Stopping Cyrus imapd" + start-stop-daemon --stop --quiet --pidfile /var/run/cyrus.pid + rm /var/run/cyrus.pid + eend $? +} |