]> git.pld-linux.org Git - packages/dovecot.git/blobdiff - dovecot.init
- enable Lua support (bcond)
[packages/dovecot.git] / dovecot.init
index 6a76990e9c823c30a602764d16f0bbf78c8892ae..4b1c3be9c857918065ec3ad3e956af5dfa2d3cc4 100644 (file)
@@ -23,11 +23,20 @@ else
        exit 0
 fi
 
+if [ -n "${DOVECOT_CONF}" ]; then
+       if [ -f "${DOVECOT_CONF}" ]; then
+         DOVECOT_CFG="-c ${DOVECOT_CONF}"
+       else
+         echo "error: DOVECOT_CONF='$DOVECOT_CONF': not a file"
+         exit 1
+       fi
+fi
+
 start() {
        # Check if the service is already running?
        if [ ! -f /var/lock/subsys/dovecot ]; then
                msg_starting "Dovecot"
-               daemon /usr/sbin/dovecot
+               daemon /usr/sbin/dovecot $DOVECOT_CFG
                RETVAL=$?
                [ $RETVAL -eq 0 ] && touch /var/lock/subsys/dovecot
        else
This page took 0.579446 seconds and 4 git commands to generate.