]> code.citadel.org Git - citadel.git/blobdiff - webcit/debian/webcit.init
* check if we can find the debian systems TZ setting.
[citadel.git] / webcit / debian / webcit.init
index 9f91937fa6dc5f783fffd5e0fc5cefd12a3b0fae..ffceaa0d02d614da59fbbfe8294b78a9f8bf806d 100644 (file)
@@ -53,6 +53,12 @@ if test -f $DEFAULT; then
   . $DEFAULT
 fi
 
+if test -z "$TZ"; then
+       if test -e /etc/timezone; then
+               TZ=`cat /etc/timezone`
+               export TZ
+       fi
+fi
 #
 # Function that starts the daemon/service
 #
@@ -150,7 +156,8 @@ case "$1" in
        if test -n "$MODERN"; then
            case "$?" in
                0|1)
-                   do_start
+                   do_start $WEBCIT_HTTP_PORT $WEBCIT_CITADEL_IP $WEBCIT_CITADEL_PORT "" "$WEBCIT_APACHEFLAG"
+                   do_start $WEBCIT_HTTPS_PORT $WEBCIT_CITADEL_IP $WEBCIT_CITADEL_PORT -s  "$WEBCIT_APACHEFLAG"
                    case "$?" in
                        0) log_end_msg 0 ;;
                        1) log_end_msg 1 ;; # Old process is still running
@@ -163,7 +170,8 @@ case "$1" in
                    ;;
            esac
        else
-           do_start
+           do_start $WEBCIT_HTTP_PORT $WEBCIT_CITADEL_IP $WEBCIT_CITADEL_PORT "" "$WEBCIT_APACHEFLAG"
+           do_start $WEBCIT_HTTPS_PORT $WEBCIT_CITADEL_IP $WEBCIT_CITADEL_PORT -s  "$WEBCIT_APACHEFLAG"
        fi
        ;;
   *)