projects
/
invirt/packages/invirt-dhcp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix our copyright files
[invirt/packages/invirt-dhcp.git]
/
debian
/
sipb-xen-dhcp.init
diff --git
a/debian/sipb-xen-dhcp.init
b/debian/sipb-xen-dhcp.init
index
dda13c6
..
37bb6bb
100644
(file)
--- a/
debian/sipb-xen-dhcp.init
+++ b/
debian/sipb-xen-dhcp.init
@@
-17,7
+17,7
@@
PATH=/sbin:/usr/sbin:/bin:/usr/bin
DESC="The sipb-xen DHCP server"
NAME=sipb-xen-dhcp
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
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
# 1 if daemon was already running
# 2 if daemon could not be started
daemon --running -n $NAME && return 1
- daemon -r -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
}
#
}
#