summaryrefslogtreecommitdiff
path: root/packages/cyrus-imapd/files/cyrus
diff options
context:
space:
mode:
authorccsmart <ccsmart@smartpal.de>2005-08-01 09:05:02 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2005-08-01 09:05:02 +0000
commit3959df9cd8b3e894f8fe3e026a480f2e6f8a6ae4 (patch)
tree645692ba31bf656cda0506a092ad939b4cb1386f /packages/cyrus-imapd/files/cyrus
parent90ad4c6975400184f3bcafda69f18e54facdb7a8 (diff)
Adding configfiles and ready to use changes.
Diffstat (limited to 'packages/cyrus-imapd/files/cyrus')
-rw-r--r--packages/cyrus-imapd/files/cyrus38
1 files changed, 38 insertions, 0 deletions
diff --git a/packages/cyrus-imapd/files/cyrus b/packages/cyrus-imapd/files/cyrus
new file mode 100644
index 0000000000..03ba55aa9c
--- /dev/null
+++ b/packages/cyrus-imapd/files/cyrus
@@ -0,0 +1,38 @@
+#! /bin/sh
+
+PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/cyrus/bin
+DAEMON=/usr/cyrus/bin/master
+NAME=master
+DESC="Cyrus IMAP Master Daemon"
+
+case "$1" in
+ start)
+ echo -n "Starting $DESC: $NAME"
+ start-stop-daemon --start --quiet --background --pidfile /var/run/$NAME.pid --exec $DAEMON
+ echo "."
+ ;;
+ stop)
+ echo -n "Stopping $DESC: $NAME "
+ start-stop-daemon --stop --quiet --pidfile /var/run/$NAME.pid --exec $DAEMON
+ sleep 1
+ killall imapd pop3d timsieved master lmtpd notifyd 2>/dev/null
+ echo "."
+ ;;
+ reload|force-reload)
+ echo "Reloading $DESC configuration..."
+ start-stop-daemon --stop --signal 1 --quiet --pidfile /var/run/$NAME.pid --exec $DAEMON
+ echo "done."
+ ;;
+ restart)
+ $0 stop
+ sleep 1
+ $0 start
+ ;;
+ *)
+ N=/etc/init.d/$NAME
+ echo "Usage: $N {start|stop|reload|restart|force-reload}" >&2
+ exit 1
+ ;;
+esac
+exit 0
+