Skip to content

Instantly share code, notes, and snippets.

@toniher
Last active March 28, 2016 23:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save toniher/1287eae8b4a1227e2564 to your computer and use it in GitHub Desktop.
Save toniher/1287eae8b4a1227e2564 to your computer and use it in GitHub Desktop.
Simple hls systemd unit
[Unit]
Description=hls: starts hls service
After=nginx.service
[Service]
Type=forking
User=www-data
ExecStart=/usr/local/bin/hls.sh
Restart=on-failure
[Install]
WantedBy=default.target
@toniher
Copy link
Author

toniher commented Mar 28, 2016

In order to run it as www-data user, you need to add www-data user to video group.

sudo usermod -a -G video www-data

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment