Skip to content
Snippets Groups Projects
Commit 3c02d9e3 authored by Hannes Feldt's avatar Hannes Feldt
Browse files

test

parent 026d21fc
Branches yocto
No related tags found
No related merge requests found
Pipeline #102585 failed
......@@ -18,7 +18,7 @@ DESC="hwtr"
SERVICE=$(basename -- "$0")
NAME="${SERVICE##*.}"
DAEMON=/usr/bin/pypcc-hwtr
PIDFILE=/var/run/$NAME.pid
PIDFILE=/var/run/$SERVICE.pid
. /etc/init.d/functions || exit 1
......@@ -33,7 +33,7 @@ PIDFILE=/var/run/$NAME.pid
#
do_start() {
echo "Starting $DESC ..."
start-stop-daemon --start --background --pidfile $PIDFILE --make-pidfile --exec $DAEMON -- -p $HWTR_PORT -c $HWTR_CONFIG $HWTR_ARGS
start-stop-daemon -S -b -p $PIDFILE -m -x $DAEMON -- -p $HWTR_PORT -c $HWTR_CONFIG $HWTR_ARGS
}
#
......@@ -41,7 +41,7 @@ do_start() {
#
do_stop() {
echo "Stopping $DESC"
start-stop-daemon --stop --pidfile $PIDFILE
start-stop-daemon -K -p $PIDFILE
}
case "$1" in
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment