From fc26de0ad34ffbdc2b63d84f7b7cc49bb3909809 Mon Sep 17 00:00:00 2001 From: Serj Date: Wed, 16 Jan 2019 21:44:19 +0000 Subject: [PATCH] FS-11614: [Packaging] Systemd unit fixes. --- debian/freeswitch-systemd.freeswitch.service | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/debian/freeswitch-systemd.freeswitch.service b/debian/freeswitch-systemd.freeswitch.service index 6225d37d5c..879a00ea13 100644 --- a/debian/freeswitch-systemd.freeswitch.service +++ b/debian/freeswitch-systemd.freeswitch.service @@ -2,8 +2,9 @@ [Unit] Description=freeswitch +Wants=network-online.target Requires=syslog.socket network.target local-fs.target -After=syslog.socket network.target local-fs.target +After=syslog.socket network.target network-online.target local-fs.target [Service] ; service @@ -11,6 +12,7 @@ Type=forking PIDFile=/run/freeswitch/freeswitch.pid Environment="DAEMON_OPTS=-nonat" EnvironmentFile=-/etc/default/freeswitch +ExecStartPre=chown -R freeswitch:freeswitch /var/lib/freeswitch /var/log/freeswitch /etc/freeswitch /usr/share/freeswitch /var/run/freeswitch ExecStart=/usr/bin/freeswitch -u freeswitch -g freeswitch -ncwait $DAEMON_OPTS TimeoutSec=45s Restart=always @@ -28,6 +30,7 @@ IOSchedulingPriority=2 CPUSchedulingPolicy=rr CPUSchedulingPriority=89 UMask=0007 +NoNewPrivileges=false ; alternatives which you can enforce by placing a unit drop-in into ; /etc/systemd/system/freeswitch.service.d/*.conf: