Remove the hack to reconnect to the database if it goes away
[invirt/packages/invirt-dhcp.git] / debian / sipb-xen-dhcp.init
index d0d97bf..37bb6bb 100644 (file)
@@ -17,7 +17,7 @@
 PATH=/sbin:/usr/sbin:/bin:/usr/bin
 DESC="The sipb-xen DHCP server"
 NAME=sipb-xen-dhcp
-DAEMON=/usr/local/lib/sipb-xen-dhcp/dhcpserver.py
+DAEMON=/usr/sbin/sipb-xen-dhcpserver
 DAEMON_ARGS=""
 PIDFILE=/var/run/$NAME.pid
 SCRIPTNAME=/etc/init.d/$NAME
@@ -45,7 +45,7 @@ do_start()
        #   1 if daemon was already running
        #   2 if daemon could not be started
        daemon --running -n $NAME && return 1
-       daemon -r -D "$(dirname $DAEMON)" -n $NAME -U $DAEMON $DAEMON_ARGS || return 2
+       daemon -r -D "$(dirname $DAEMON)" -O daemon.info -E daemon.err -n $NAME -U $DAEMON $DAEMON_ARGS || return 2
 }
 
 #