summaryrefslogtreecommitdiff
blob: 8629a59d22739afc84b81d9033db77ba81287084 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/sbin/runscript
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-mail/cyrus-imapd/files/cyrus.rc6_2,v 1.3 2004/03/06 03:16:51 vapier Exp $

depend() {
	need net
	after saslauthd
	use dns logger
}

start() {
	ebegin "Starting Cyrus imapd"
	start-stop-daemon --start --quiet --background --make-pidfile --pidfile /var/run/cyrus.pid --exec /usr/cyrus/bin/cyrusmaster
	eend $?
}

stop() {
	ebegin "Stopping Cyrus imapd"
	start-stop-daemon --stop --quiet --pidfile /var/run/cyrus.pid
	rm /var/run/cyrus.pid
	eend $?
}