From debian packaging some additions to the systemd example service file

This commit is contained in:
Mészáros Mihály 2019-05-20 15:27:49 +02:00
parent 7fbf9436f2
commit e1cec37f27
2 changed files with 15 additions and 5 deletions

View File

@ -26,6 +26,7 @@ Version 4.5.1.2 'dan Eider':
* Now we put in turn_session_info->tls_method the real TLS version.
Earlier we put UNKNOWN in this field if it was a TLS protocol
that was not defined supportel TLS protocol during compile time.
- merge PR #276 Add systemd service example (by Liberasys)
02/03/2019 Oleg Moskalenko <mom040267@gmail.com> Mihály Mészáros <misi@majd.eu>
Version 4.5.1.1 'dan Eider':

View File

@ -1,15 +1,24 @@
[Unit]
Description=coturn TURN Server
Before=multi-user.target
Before=graphical.target
Description=coTURN STUN/TURN Server
Documentation=man:coturn(1) man:turnadmin(1) man:turnserver(1)
After=network.target
After=network-online.target
After=remote-fs.target
Wants=network-online.target
[Service]
ExecStart=/usr/local/bin/turnserver
User=turnserver
Group=turnserver
Type=forking
RuntimeDirectory=turnserver
PIDFile=/run/turnserver/turnserver.pid
ExecStart=/usr/bin/turnserver --daemon -c /etc/turnserver.conf --pidfile /run/turnserver/turnserver.pid
#FixMe: turnserver exit faster than it is finshing the setup and ready for handling the connection.
ExecStartPost=/bin/sleep 2
Restart=on-failure
InaccessibleDirectories=/home
PrivateTmp=yes
[Install]
WantedBy=multi-user.target
Alias=turnserver.service