Web based Jalousie control.

mc_control.sh 694B

123456789101112131415161718192021222324252627
  1. #! /bin/sh
  2. ### BEGIN INIT INFO
  3. # Provides: start and stop of the mc_control webservice
  4. # Required-Start:
  5. # Required-Stop:
  6. # Default-Start: 2 3 4 5
  7. # Default-Stop: 0 1 6
  8. # Short-Description: start and stop of the mc_control webservice
  9. # Description: start and stop of the mc_control webservice
  10. ### END INIT INFO
  11. # Author: Name <volkmann@devpool.net>
  12. # Aktionen
  13. case "$1" in
  14. start)
  15. /usr/bin/python3 /var/lib/RP_Jalousiecontrol/SimpleWebControl/simple_server.py &
  16. ;;
  17. stop)
  18. killall python3
  19. ;;
  20. restart)
  21. killall python3
  22. /usr/bin/python3 /var/lib/RP_Jalousiecontrol/SimpleWebControl/simple_server.py &
  23. ;;
  24. esac
  25. exit 0