Change rpm systemd service type from notify to exec (#1043)

Fix the issue https://github.com/coturn/coturn/issues/118 that prevent
the process to start as coturn never send the notification to systemd
thus preventing the startup.

Cherry-picked from #990 thanks to @rapsys
This commit is contained in:
Gustavo Garcia 2022-10-25 01:43:01 +02:00 committed by GitHub
parent 1148ed7d0d
commit 27e5dd6e23
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,7 +6,8 @@ After=syslog.target network.target
[Service]
User=turnserver
Group=turnserver
Type=notify
Type=exec
PIDFile=/var/run/turnserver/turnserver.pid
EnvironmentFile=/etc/sysconfig/turnserver
ExecStart=/usr/bin/turnserver -c /etc/turnserver/turnserver.conf $EXTRA_OPTIONS
ExecStopPost=/usr/bin/rm -f /var/run/turnserver/turnserver.pid