# 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
}
#