forked from norman/fusionpbx-install.sh-github-mirror
Update freeswitch.service.package
Add ExecStartPre to run mkdir and chown for /var/run/freeswitch
This commit is contained in:
@@ -10,6 +10,8 @@ Type=forking
|
|||||||
PIDFile=/run/freeswitch/freeswitch.pid
|
PIDFile=/run/freeswitch/freeswitch.pid
|
||||||
Environment="DAEMON_OPTS=-nonat"
|
Environment="DAEMON_OPTS=-nonat"
|
||||||
EnvironmentFile=-/etc/default/freeswitch
|
EnvironmentFile=-/etc/default/freeswitch
|
||||||
|
ExecStartPre=/bin/mkdir -p /var/run/freeswitch/
|
||||||
|
ExecStartPre=/bin/chown -R www-data:www-data /var/run/freeswitch/
|
||||||
ExecStart=/usr/bin/freeswitch -u www-data -g www-data -ncwait $DAEMON_OPTS
|
ExecStart=/usr/bin/freeswitch -u www-data -g www-data -ncwait $DAEMON_OPTS
|
||||||
TimeoutSec=45s
|
TimeoutSec=45s
|
||||||
Restart=always
|
Restart=always
|
||||||
|
|||||||
Reference in New Issue
Block a user