diff options
author | Mario Preksavec <mario@slackware.hr> | 2016-02-21 02:43:50 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2016-02-23 00:57:58 +0700 |
commit | 53c501c34b913c5a8a85a5ce5c32701cbce40fea (patch) | |
tree | 62e675c52d135ef0d29ef3d79a280b0820c1d26b /network/cyrus-imapd/rc.cyrus-imapd | |
parent | 63114b4de656605c1618db09bcf0196c77367f6c (diff) |
network/cyrus-imapd: Updated for version 2.5.7.
Signed-off-by: Mario Preksavec <mario@slackware.hr>
Diffstat (limited to 'network/cyrus-imapd/rc.cyrus-imapd')
-rw-r--r-- | network/cyrus-imapd/rc.cyrus-imapd | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/network/cyrus-imapd/rc.cyrus-imapd b/network/cyrus-imapd/rc.cyrus-imapd index c148183bbfe75..99cd26b926da9 100644 --- a/network/cyrus-imapd/rc.cyrus-imapd +++ b/network/cyrus-imapd/rc.cyrus-imapd @@ -1,10 +1,11 @@ #!/bin/sh # Start/stop/restart the Cyrus IMAP daemon. -# Written by mario <mario@slackverse.org>. +# Written by Mario Preksavec <mario@slackware.hr> cyrus_start() { if [ -x /usr/libexec/cyrus/master ]; then - if [ -f /var/run/cyrus-master.pid ] && kill -0 $(cat /var/run/cyrus-master.pid) 2> /dev/null; then + if [ -f /var/run/cyrus-master.pid ] \ + && kill -0 $(cat /var/run/cyrus-master.pid) 2> /dev/null; then echo "Cyrus IMAP daemon already running." return fi @@ -16,7 +17,8 @@ cyrus_start() { cyrus_stop() { if [ -f /var/run/cyrus-master.pid ]; then echo "Stopping Cyrus IMAP daemon" - kill $(cat /var/run/cyrus-master.pid) 2> /dev/null && rm -f /var/run/cyrus-master.pid + kill $(cat /var/run/cyrus-master.pid) 2> /dev/null \ + && rm -f /var/run/cyrus-master.pid else echo "Cyrus IMAP daemon already stopped." fi |