Skip to content

Instantly share code, notes, and snippets.

@chazcheadle
Created August 2, 2016 15:56
Show Gist options
  • Select an option

  • Save chazcheadle/333a252bcdeb6b2aa721c2931a38c84d to your computer and use it in GitHub Desktop.

Select an option

Save chazcheadle/333a252bcdeb6b2aa721c2931a38c84d to your computer and use it in GitHub Desktop.
mjpg-steamer.service and script
[Unit]
Description=mjpg-streamer
[Install]
WantedBy=multi-user.target
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/opt/mjpg-streamer/mjpg-streamer-experimental/mjpg-streamer.sh
#!/bin/sh
mjpg_streamer -b -i "/usr/local/lib/mjpg-streamer/input_raspicam.so -rot 180 -fps 10 -x 640 -y 480" -o "/usr/local/lib/mjpg-streamer/output_http.so -w /var/www -p 8092"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment