eta4ever

Untitled

Sep 4th, 2018
704
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2. # Start / stop streamer daemon
  3.  
  4. case "$1" in
  5. start)
  6. /home/opi/scripts/webcamDaemon >/dev/null 2>&1 &
  7. echo "$0: started"
  8. ;;
  9. stop)
  10. pkill -x webcamDaemon
  11. pkill -x mjpg_streamer
  12. echo "$0: stopped"
  13. ;;
  14. *)
  15. echo "Usage: $0 {start|stop}" >&2
  16. ;;
  17. esac
RAW Paste Data