瀏覽代碼

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 年之前
父節點
當前提交
27e5dd6e23
共有 1 個文件被更改,包括 2 次插入1 次删除
  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