From: Evan Broder Date: Wed, 27 Feb 2008 01:46:23 +0000 (-0500) Subject: Made sure that the daemon gets run out of the right directory X-Git-Tag: sipb-xen-dhcp/1~3 X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-dhcp.git/commitdiff_plain/0dce32189a6321eba011490596caf37af801a200?ds=sidebyside Made sure that the daemon gets run out of the right directory svn path=/trunk/packages/sipb-xen-dhcp/; revision=275 --- diff --git a/debian/sipb-xen-dhcp.init b/debian/sipb-xen-dhcp.init index dda13c6..d0d97bf 100644 --- a/debian/sipb-xen-dhcp.init +++ b/debian/sipb-xen-dhcp.init @@ -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 -n $NAME -U $DAEMON $DAEMON_ARGS || return 2 + daemon -r -D "$(dirname $DAEMON)" -n $NAME -U $DAEMON $DAEMON_ARGS || return 2 } #