* resync with pkg-citadel, fix package build
[citadel.git] / webcit / debian / webcit.init
index 123d096c025dcb2950e0da4edd4ef9d2ec419625..2ec76b62188d74f079e99e1e6da804107a156b01 100644 (file)
@@ -24,10 +24,6 @@ DEFAULT=/etc/default/webcit
 LOGDIR=/var/log/webcit/
 
 
-unset LANG
-unset LANGUAGE
-unset LC_ALL
-unset LOCALE
 # Exit if the package is not installed
 [ -x "$DAEMON" ] || exit 0
 
@@ -53,6 +49,11 @@ if test -f $DEFAULT; then
   . $DEFAULT
 fi
 
+unset LANG
+unset LANGUAGE
+unset LC_ALL
+unset LOCALE
+
 if test -z "$TZ"; then
        if test -e /etc/timezone; then
                TZ=`cat /etc/timezone`
@@ -108,7 +109,8 @@ do_stop()
 
 do_reload() {
         do_stop
-        do_start
+       do_start $WEBCIT_HTTP_PORT $WEBCIT_CITADEL_IP $WEBCIT_CITADEL_PORT "" "$LISTEN"  "$WEBCIT_APACHEFLAG"
+       do_start $WEBCIT_HTTPS_PORT $WEBCIT_CITADEL_IP $WEBCIT_CITADEL_PORT -s "$LISTEN"  "$WEBCIT_APACHEFLAG"
        return 0
 }