# 0 if daemon has been started
# 1 if daemon was already running
# 2 if daemon could not be started
# 0 if daemon has been started
# 1 if daemon was already running
# 2 if daemon could not be started
daemon --running -n $NAME && return 1
daemon -r -O daemon.info -E daemon.err -n $NAME -U $DAEMON $DAEMON_ARGS || return 2
}
daemon --running -n $NAME && return 1
daemon -r -O daemon.info -E daemon.err -n $NAME -U $DAEMON $DAEMON_ARGS || return 2
}