Skip to content

Instantly share code, notes, and snippets.

@cstroie
Created January 29, 2014 14:36
Show Gist options
  • Save cstroie/8689260 to your computer and use it in GitHub Desktop.
Save cstroie/8689260 to your computer and use it in GitHub Desktop.
#!/bin/sh /etc/rc.common
#
# Startup script for mjpg-streamer with file input plugin
#
START=50
STOP=50
PROG=/usr/bin/mjpg_streamer
start() {
start-stop-daemon -S -b -x "${PROG}" -- -i "input_file.so -f /tmp -n snapshot.jpg -d 5" -o "output_http.so -p 8090 -w /www/webcam -n"
}
stop() {
start-stop-daemon -K -x "${PROG}" >/dev/null 2>&1 ; true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment