Browse Source

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
Gustavo Garcia 3 năm trước cách đây
mục cha
commit
27e5dd6e23
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      rpm/turnserver.service.fc

+ 2 - 1
rpm/turnserver.service.fc

@@ -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