27 wiersze
694 B
Bash
Executable File
27 wiersze
694 B
Bash
Executable File
#! /bin/sh
|
|
### BEGIN INIT INFO
|
|
# Provides: start and stop of the mc_control webservice
|
|
# Required-Start:
|
|
# Required-Stop:
|
|
# Default-Start: 2 3 4 5
|
|
# Default-Stop: 0 1 6
|
|
# Short-Description: start and stop of the mc_control webservice
|
|
# Description: start and stop of the mc_control webservice
|
|
### END INIT INFO
|
|
# Author: Name <volkmann@devpool.net>
|
|
# Aktionen
|
|
case "$1" in
|
|
start)
|
|
/usr/bin/python3 /var/lib/RP_Jalousiecontrol/SimpleWebControl/simple_server.py &
|
|
;;
|
|
stop)
|
|
killall python3
|
|
;;
|
|
restart)
|
|
killall python3
|
|
/usr/bin/python3 /var/lib/RP_Jalousiecontrol/SimpleWebControl/simple_server.py &
|
|
;;
|
|
esac
|
|
|
|
exit 0
|