coturn.service 688 B

123456789101112131415161718192021222324
  1. [Unit]
  2. Description=coTURN STUN/TURN Server
  3. Documentation=man:coturn(1) man:turnadmin(1) man:turnserver(1)
  4. After=network.target
  5. After=network-online.target
  6. After=remote-fs.target
  7. Wants=network-online.target
  8. [Service]
  9. User=turnserver
  10. Group=turnserver
  11. Type=forking
  12. RuntimeDirectory=turnserver
  13. PIDFile=/run/turnserver/turnserver.pid
  14. ExecStart=/usr/bin/turnserver --daemon -c /etc/turnserver.conf --pidfile /run/turnserver/turnserver.pid
  15. #FixMe: turnserver exit faster than it is finshing the setup and ready for handling the connection.
  16. ExecStartPost=/bin/sleep 2
  17. Restart=on-failure
  18. InaccessibleDirectories=/home
  19. PrivateTmp=yes
  20. [Install]
  21. WantedBy=multi-user.target
  22. Alias=turnserver.service