Commit 5a953672 authored by Administrator's avatar Administrator

[FIX] all path for command.

parent f68f497e
......@@ -16,7 +16,7 @@ DAEMON_PID=/tmp/$DAEMON_NAME.pid
do_start () {
log_daemon_msg "Starting system '$DAEMON_NAME' daemon..."
start-stop-daemon --start --quiet \
/sbin/start-stop-daemon --start --quiet \
--make-pidfile --pidfile $DAEMON_PID --background \
--startas /bin/bash -- -c "python3 $DAEMON_SCRIPT $DAEMON_ARGS > /tmp/$DAEMON_NAME.log 2>&1"
# --exec $DAEMON_SCRIPT \
......@@ -25,7 +25,7 @@ do_start () {
}
do_stop () {
log_daemon_msg "Stopping system '$DAEMON_NAME' daemon..."
start-stop-daemon --stop --pidfile $DAEMON_PID --retry 10
/sbin/start-stop-daemon --stop --pidfile $DAEMON_PID --retry 10
log_end_msg $?
}
......@@ -49,4 +49,4 @@ case "$1" in
;;
esac
exit 0
\ No newline at end of file
exit 0
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment