aboutsummaryrefslogtreecommitdiff
path: root/network/cyrus-imapd/rc.cyrus-imapd
diff options
context:
space:
mode:
Diffstat (limited to 'network/cyrus-imapd/rc.cyrus-imapd')
-rw-r--r--network/cyrus-imapd/rc.cyrus-imapd8
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