]> git.pld-linux.org Git - packages/cyrus-imapd.git/commitdiff
- added
authorwaszi <waszi@pld-linux.org>
Thu, 25 Jan 2001 18:35:51 +0000 (18:35 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    cyrus-imapd.init -> 1.1
    cyrus.conf -> 1.1

cyrus-imapd.init [new file with mode: 0644]
cyrus.conf [new file with mode: 0644]

diff --git a/cyrus-imapd.init b/cyrus-imapd.init
new file mode 100644 (file)
index 0000000..1b952c6
--- /dev/null
@@ -0,0 +1,70 @@
+#!/bin/sh
+#
+# cyrus-imapd  cyrus-imapd IMAP & POP3 Server
+#
+# chkconfig:    345  85 15
+#
+# description: cyrus-imapd
+
+# Source function library
+. /etc/rc.d/init.d/functions
+
+# Get network config
+. /etc/sysconfig/network
+
+# Check that networking is up.
+if is_yes "${NETWORKING}"; then
+       if [ ! -f /var/lock/subsys/network ]; then
+               msg_network_down cyrus-imapd
+               exit 1
+       fi
+else
+       exit 0
+fi
+
+
+# See how we were called.
+case "$1" in
+  start)
+       # Check if the service is already running?
+       if [ ! -f /var/lock/subsys/cyrus-imapd ]; then
+               msg_starting cyrus-imapd
+               /usr/lib/cyrus/cyrus-master &
+               RETVAL=$?
+               [ $RETVAL -eq 0 ] && touch /var/lock/subsys/cyrus-imapd
+       else
+               # show "%s service is already running." <service>
+               msg_already_running cyrus-imapd
+               exit 1
+       fi
+        ;;
+  stop)
+        # Stop daemons.
+       if [ -f /var/lock/subsys/cyrus-imapd ]; then
+               msg_stopping cyrus-imapd
+               killproc cyrus-master
+               RETVAL=$?
+               rm -f /var/lock/subsys/cyrus-imapd
+       else
+               msg_not_running cyrus-imapd
+               exit 1
+       fi      
+        ;;
+  restart)
+        $0 stop
+       $0 start
+        ;;
+  status)
+       status cyrus-master
+       RETVAL=$?
+        ;;
+  *)
+       msg_usage "$0 {start|stop|status|restart}"
+        exit 1
+esac
+
+exit $RETVAL
+
+# This must be last line !
+# vi:syntax=sh:tw=78:ts=8:sw=4
+
diff --git a/cyrus.conf b/cyrus.conf
new file mode 100644 (file)
index 0000000..bc9ea76
--- /dev/null
@@ -0,0 +1,32 @@
+# standard standalone server implementation
+
+START {
+  # do not delete these entries!
+  mboxlist     cmd="ctl_mboxlist -r"
+  deliver      cmd="ctl_deliver -r"
+
+  # this is only necessary if using idled for IMAP IDLE
+#  idled               cmd="idled"
+}
+
+# UNIX sockets start with a slash and are put into /var/imap/socket
+SERVICES {
+  # add or remove based on preferences
+  imap         cmd="imapd" listen="imap" prefork=0
+  imaps                cmd="imapd -s" listen="imaps" prefork=0
+  pop3         cmd="pop3d" listen="pop3" prefork=0
+  pop3s                cmd="pop3d -s" listen="pop3s" prefork=0
+  sieve                cmd="timsieved" listen="sieve" prefork=0
+
+  # at least one LMTP is required for delivery
+#  lmtp                cmd="lmtpd" listen="lmtp" prefork=0
+  lmtpunix     cmd="lmtpd" listen="/var/lib/imap/socket/lmtp" prefork=0
+}
+
+EVENTS {
+  # this is required
+  checkpoint   cmd="ctl_mboxlist -c" period=30
+
+  # this is only necessary if using duplicate delivery suppression
+  delprune     cmd="ctl_deliver -E 3" period=1440
+}
This page took 0.125589 seconds and 4 git commands to generate.