mirror of
https://gitlab.sectorq.eu/jaydee/mqtt_srv.git
synced 2025-12-14 10:34:53 +01:00
16 lines
231 B
Bash
16 lines
231 B
Bash
#!/bin/bash
|
|
case $1 in
|
|
"start")
|
|
mqtt_srv.py > /dev/null 2>&1 &
|
|
;;
|
|
stop)
|
|
kill -9 `ps -ef|grep -e "mqtt_srv.py"|grep -v grep|awk '{ print $1}'`
|
|
;;
|
|
restart)
|
|
$0 stop
|
|
$0 start
|
|
;;
|
|
status)
|
|
ps -ef|grep -e "mqtt_srv.py"|grep -v grep
|
|
;;
|
|
esac |