mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Update the systemd service files
This commit is contained in:
@@ -1,9 +1,8 @@
|
||||
|
||||
; Author: Mark J Crane <markjcrane@fusionpbx.com>
|
||||
; cp /var/www/fusionpbx/app/event_guard/resources/service/debian.service /etc/systemd/system/event_guard.service
|
||||
; systemctl daemon-reload
|
||||
; systemctl enable event_guard
|
||||
; systemctl start event_guard
|
||||
; systemctl daemon-reload
|
||||
|
||||
[Unit]
|
||||
Description=FusionPBX Event Guard
|
||||
@@ -15,19 +14,12 @@ After=network.target network-online.target local-fs.target
|
||||
StartLimitIntervalSec=0
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
;Type=forking
|
||||
PIDFile=/var/run/fusionpbx/event_guard.pid
|
||||
WorkingDirectory=/var/www/fusionpbx
|
||||
;Environment="USER=www-data"
|
||||
;Environment="GROUP=www-data"
|
||||
;EnvironmentFile=-/etc/default/fusionpbx
|
||||
ExecStartPre=/bin/mkdir -p /var/run/fusionpbx
|
||||
;ExecStartPre=/bin/chown -R ${USER}:${GROUP} /var/www/fusionpbx
|
||||
ExecStart=/usr/bin/php /var/www/fusionpbx/app/event_guard/resources/service/event_guard.php
|
||||
User=root
|
||||
Group=root
|
||||
TimeoutSec=55s
|
||||
Restart=always
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Also=
|
||||
|
||||
Reference in New Issue
Block a user