]> WPIA git - cassiopeia.git/blobdiff - debian/cacert-cassiopeia.init
fix: we don't require mysql anymore...
[cassiopeia.git] / debian / cacert-cassiopeia.init
index 726d4ab76d5622e8e46019f51f0c5a45437313d6..b9b7ebaf160cbd999f5c9a89a661701d67d1e7db 100644 (file)
@@ -1,8 +1,8 @@
 #!/bin/sh
 ### BEGIN INIT INFO
 # Provides:          cassiopeia
-# Required-Start:    $local_fs $network $remote_fs $syslog mysql
-# Required-Stop:     $local_fs $network $remote_fs $syslog mysql
+# Required-Start:    $local_fs $network $remote_fs $syslog
+# Required-Stop:     $local_fs $network $remote_fs $syslog
 # Default-Start:     2 3 4 5
 # Default-Stop:      0 1 6
 # Short-Description: <Enter a short description of the software>
@@ -18,7 +18,7 @@
 # PATH should only include /usr/* if it runs after the mountnfs.sh script
 PATH=/sbin:/usr/sbin:/bin:/usr/bin
 DESC="cacert's signer software"
-NAME=cassiopeia
+NAME=cacert-cassiopeia
 DAEMON=/usr/bin/cassiopeia
 DAEMON_ARGS=
 PIDFILE=/var/run/$NAME.pid
@@ -30,6 +30,10 @@ DIR=/var/lib/cacert-gigi
 
 # Read configuration variable file if it is present
 [ -r /etc/default/$NAME ] && . /etc/default/$NAME
+if [ "$START_DAEMON" = "0" ]; then
+    echo "Not starting $NAME (as configured in /etc/default/$NAME)";
+    exit 0;
+fi
 
 # Load the VERBOSE setting and other rcS variables
 . /lib/init/vars.sh
@@ -44,7 +48,7 @@ DIR=/var/lib/cacert-gigi
 #
 do_start()
 {
-       if [ ! -f /var/lib/cacert-gigi/config.txt ]; then
+       if [ ! -f /etc/cacert/cassiopeia/cassiopeia.conf ]; then
                echo Missing cassiopeia-configfile
                 exit 2
         fi