mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
34 lines
1.1 KiB
Desktop File
34 lines
1.1 KiB
Desktop File
; Author: Mark J Crane <markjcrane@fusionpbx.com>
|
|
; cp /var/www/fusionpbx/app/system/resources/service/debian.service /etc/systemd/system/system_dashboard.service
|
|
; systemctl daemon-reload
|
|
; systemctl enable --now system_dashboard
|
|
|
|
[Unit]
|
|
Description=FusionPBX System Dashboard Information Service
|
|
Wants=network-online.target
|
|
Requires=network.target local-fs.target
|
|
;Requires=network.target local-fs.target postgresql.service
|
|
After=network.target network-online.target local-fs.target
|
|
;After=network.target network-online.target local-fs.target postgresql.service
|
|
StartLimitIntervalSec=0
|
|
|
|
[Service]
|
|
Type=simple
|
|
;Type=forking
|
|
PIDFile=/var/run/fusionpbx/system_dashboard.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/system/resources/service/system.php --no-fork
|
|
User=www-data
|
|
Group=www-data
|
|
TimeoutSec=55s
|
|
Restart=always
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|
|
Also=
|