summaryrefslogtreecommitdiff
path: root/recipes-connectivity/bluez/bluez5/rfcomm/init
diff options
context:
space:
mode:
authorMykola Salomatin <mykola.salomatin@globallogic.com>2022-05-05 12:28:37 +0300
committerMykola Salomatin <mykola.salomatin@globallogic.com>2022-05-05 12:28:37 +0300
commit76bdabe5709107f664a3d851ac2d3eb7a7073dd3 (patch)
tree43cff2ae4c3c8f104f5dd0623dbf064c6d4c1838 /recipes-connectivity/bluez/bluez5/rfcomm/init
parenteeb29ee4deaa89e4f10bc193fb9e6714e420aece (diff)
parentca1aadba53b3683386bc034451212b8317492a83 (diff)
downloadmeta-mlinux-76bdabe5709107f664a3d851ac2d3eb7a7073dd3.tar.gz
meta-mlinux-76bdabe5709107f664a3d851ac2d3eb7a7073dd3.tar.bz2
meta-mlinux-76bdabe5709107f664a3d851ac2d3eb7a7073dd3.zip
Merge remote-tracking branch 'origin/6' into mpower-dev-nxp
Diffstat (limited to 'recipes-connectivity/bluez/bluez5/rfcomm/init')
-rwxr-xr-xrecipes-connectivity/bluez/bluez5/rfcomm/init8
1 files changed, 4 insertions, 4 deletions
diff --git a/recipes-connectivity/bluez/bluez5/rfcomm/init b/recipes-connectivity/bluez/bluez5/rfcomm/init
index 69455d8..08366ea 100755
--- a/recipes-connectivity/bluez/bluez5/rfcomm/init
+++ b/recipes-connectivity/bluez/bluez5/rfcomm/init
@@ -2,7 +2,7 @@
NAME=rfcomm
SERVER=/usr/libexec/bluetooth/${NAME}
-PYTHON=$(readlink -f /usr/bin/python2)
+PYTHON=$(readlink -f /usr/bin/python)
PIDFILE="/run/${NAME}.pid"
ENABLED=yes
@@ -16,12 +16,12 @@ fi
case $1 in
start)
echo "Starting ${NAME}"
- echo /usr/sbin/start-stop-daemon -S -p ${PIDFILE} -x ${PYTHON} -b -- ${SERVER} ${RFCOMMOPTS}
- /usr/sbin/start-stop-daemon -S -p ${PIDFILE} -x ${PYTHON} -b -- ${SERVER} ${RFCOMMOPTS}
+ echo /usr/sbin/start-stop-daemon -S -p ${PIDFILE} -a ${SERVER} -n ${NAME} -b -- ${RFCOMMOPTS}
+ /usr/sbin/start-stop-daemon -S -p ${PIDFILE} -a ${SERVER} -n ${NAME} -b -- ${RFCOMMOPTS}
;;
stop)
- /usr/sbin/start-stop-daemon -K -p ${PIDFILE} -x ${PYTHON}
+ /usr/bin/pkill --ns $(cat "$PIDFILE") -f " ${SERVER} "
echo "Stopping ${DNAME}"
;;