* modified build script to find out the version the way we do it now.
[citadel.git] / citadel / debian / citadel-server.postinst
index f06a7247fad4574cc06653edad651ba7deaa7bf9..5f52f45e717174046b1fbf01f0c94fb6be6a0544 100644 (file)
@@ -167,6 +167,7 @@ case "$1" in
        export SYSADMIN_NAME=$admin
        export CREATE_XINETD_ENTRY=no
        export CREATE_INITTAB_ENTRY=no
+       export NO_INIT_SCRIPTS=yes
        echo "applying your settings."
 # citadel home
 # sysadmin
@@ -187,7 +188,10 @@ case "$1" in
        if test -S /var/run/citadel/citadel.socket; then 
            /usr/sbin/sendcommand "DOWN"
        fi
-       killall -HUP init
+
+       update-rc.d citadel defaults >/dev/null
+
+       echo "run /etc/init.d/citadel start to start citadel service."
     #### There are three sub-cases:
     ###if test "${2+set}" != set; then
     ###  # We're being installed by an ancient dpkg which doesn't remember
@@ -240,6 +244,5 @@ case "$1" in
      exit 0;;
 esac
 
-#DEBHELPER#
 
 exit 0