From 27e5dd6e23a106e7aacda72cd8af6306dfe0d222 Mon Sep 17 00:00:00 2001 From: Gustavo Garcia Date: Tue, 25 Oct 2022 01:43:01 +0200 Subject: [PATCH] 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 --- rpm/turnserver.service.fc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rpm/turnserver.service.fc b/rpm/turnserver.service.fc index 6eb53bd..0aea8ff 100644 --- a/rpm/turnserver.service.fc +++ b/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