diff --git a/bin/service/hyperion.init.sh b/bin/service/hyperion.init.sh index 3cd0723d..ca3f8d14 100644 --- a/bin/service/hyperion.init.sh +++ b/bin/service/hyperion.init.sh @@ -22,7 +22,7 @@ PIDFILE=/var/run/$NAME.pid SCRIPTNAME=/etc/init.d/$NAME case "$1" in start) - if [ $(pgrep -l $NAME |wc -l) = 1 ] + if [ $(pgrep -xl $NAME |wc -l) = 1 ] then printf "%-50s\n" "Already running..." exit 1 @@ -59,8 +59,7 @@ stop) PID=`cat $PIDFILE` cd $DAEMON_PATH if [ -f $PIDFILE ]; then - hyperion-remote -c black - kill -HUP $PID + kill $PID printf "%s\n" "Ok" rm -f $PIDFILE else diff --git a/bin/service/hyperion.systemd.sh b/bin/service/hyperion.systemd.sh index 005c0c14..c3c66255 100644 --- a/bin/service/hyperion.systemd.sh +++ b/bin/service/hyperion.systemd.sh @@ -12,4 +12,4 @@ Restart=on-failure TimeoutStopSec=10 [Install] -WantedBy=multi-user.target \ No newline at end of file +WantedBy=multi-user.target