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 ...@@ -16,7 +16,7 @@ DAEMON_PID=/tmp/$DAEMON_NAME.pid
do_start () { do_start () {
log_daemon_msg "Starting system '$DAEMON_NAME' daemon..." 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 \ --make-pidfile --pidfile $DAEMON_PID --background \
--startas /bin/bash -- -c "python3 $DAEMON_SCRIPT $DAEMON_ARGS > /tmp/$DAEMON_NAME.log 2>&1" --startas /bin/bash -- -c "python3 $DAEMON_SCRIPT $DAEMON_ARGS > /tmp/$DAEMON_NAME.log 2>&1"
# --exec $DAEMON_SCRIPT \ # --exec $DAEMON_SCRIPT \
...@@ -25,7 +25,7 @@ do_start () { ...@@ -25,7 +25,7 @@ do_start () {
} }
do_stop () { do_stop () {
log_daemon_msg "Stopping system '$DAEMON_NAME' daemon..." 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 $? log_end_msg $?
} }
...@@ -49,4 +49,4 @@ case "$1" in ...@@ -49,4 +49,4 @@ case "$1" in
;; ;;
esac esac
exit 0 exit 0
\ No newline at end of file
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