Files
mqtt_srv/mqtt_srv.sh
Your Name b4018dafb5 added
2024-07-08 22:51:06 +02:00

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