[Unit] Description=coTURN STUN/TURN Server Documentation=man:coturn(1) man:turnadmin(1) man:turnserver(1) After=network.target [Service] Environment=CFG=/etc/turnserver.conf # You may use this to overwrite CFG EnvironmentFile=-/etc/default/coturn # To be able to run/bind to privileged ports (< 1024) User=root is required. #User=turnserver #Group=turnserver Type=notify RuntimeDirectory=turnserver PIDFile=/run/turnserver/turnserver.pid ExecStart=/usr/bin/turnserver --daemon -c ${CFG} --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