diff options
author | ccsmart <ccsmart@smartpal.de> | 2005-08-01 09:05:02 +0000 |
---|---|---|
committer | OpenEmbedded Project <openembedded-devel@lists.openembedded.org> | 2005-08-01 09:05:02 +0000 |
commit | 3959df9cd8b3e894f8fe3e026a480f2e6f8a6ae4 (patch) | |
tree | 645692ba31bf656cda0506a092ad939b4cb1386f /packages/cyrus-imapd/files/cyrus | |
parent | 90ad4c6975400184f3bcafda69f18e54facdb7a8 (diff) |
Adding configfiles and ready to use changes.
Diffstat (limited to 'packages/cyrus-imapd/files/cyrus')
-rw-r--r-- | packages/cyrus-imapd/files/cyrus | 38 |
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 + |