Skip to content

Instantly share code, notes, and snippets.

@HendrikRoth
Created January 11, 2017 18:01
Show Gist options
  • Save HendrikRoth/332d5b8de532df03e8fd2be4a171fbe0 to your computer and use it in GitHub Desktop.
Save HendrikRoth/332d5b8de532df03e8fd2be4a171fbe0 to your computer and use it in GitHub Desktop.
#!/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