Created
January 11, 2017 18:01
-
-
Save HendrikRoth/332d5b8de532df03e8fd2be4a171fbe0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Start / stop streamer daemon | |
case "$1" in | |
start) | |
sudo -u pi /home/pi/scripts/webcamDaemon >/dev/null 2>&1 & | |
echo "$0: started" | |
;; | |
stop) | |
pkill -x webcamDaemon | |
pkill -x mjpg_streamer | |
echo "$0: stopped" | |
;; | |
*) | |
echo "Usage: $0 {start|stop}" >&2 | |
;; | |
esac |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment