Last active
March 28, 2016 23:22
-
-
Save toniher/1287eae8b4a1227e2564 to your computer and use it in GitHub Desktop.
Simple hls systemd unit
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
[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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In order to run it as www-data user, you need to add www-data user to video group.