-
-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add files for running srtla_rec as a systemd service
- Loading branch information
1 parent
5ffbe4c
commit 7eb76ef
Showing
3 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
cp ../srtla_rec /usr/local/bin/srtla_rec | ||
chown root:root /usr/local/bin/srtla_rec | ||
chmod 755 /usr/local/bin/srtla_rec | ||
|
||
# don't replace if it already exists as it holds user settings | ||
cp -n srtla_rec_default /etc/default/srtla_rec | ||
chown root:root /etc/default/srtla_rec | ||
chmod 644 /etc/default/srtla_rec | ||
|
||
cp srtla_rec.service /etc/systemd/system/ | ||
chown root:root /etc/systemd/system/srtla_rec.service | ||
chmod 644 /etc/systemd/system/srtla_rec.service |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
[Unit] | ||
Description=srtla receive service | ||
After=network.target | ||
|
||
[Service] | ||
EnvironmentFile=/etc/default/srtla_rec | ||
ExecStart=/usr/local/bin/srtla_rec $SRTLA_LISTEN_PORT $SRT_ADDR | ||
KillMode=process | ||
Restart=on-failure | ||
NoNewPrivileges=true | ||
User=nobody | ||
Group=nogroup | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Options to pass to srtla_rec | ||
SRTLA_LISTEN_PORT="10000" | ||
SRT_ADDR="127.0.0.1 7000" |