mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-01 09:43:50 +00:00
* TFTP Service v1.0.7
Fixed linux and windows run as service issues
Fixed linux systemd service self install issues
Modified windows service self install process
* Revert "TFTP Service v1.0.7"
This reverts commit 4418ca7a11.
* TFTP Service v1.0.7
Fixed linux and windows run as service issues
Fixed linux systemd service self install issues
Modified windows service self install process
26 lines
491 B
Plaintext
26 lines
491 B
Plaintext
[Unit]
|
|
Description={$fullname}
|
|
After=syslog.target network.target {$database}
|
|
Requires={$database}
|
|
|
|
[Service]
|
|
Type=simple
|
|
PIDFile=/run/{$shortname}.pid
|
|
WorkingDirectory={$scriptfolder}
|
|
StandardOutput=null
|
|
StandardError=syslog
|
|
ExecStart=/usr/bin/php {$scriptpath}
|
|
ExecStop=/bin/kill $MAINPID
|
|
PrivateTmp=true
|
|
InaccessibleDirectories=/home /root /boot /opt /mnt /media
|
|
ReadOnlyDirectories=/etc /usr
|
|
|
|
;Permissions
|
|
User=root
|
|
Group=daemon
|
|
|
|
;Limits
|
|
LimitCORE=1
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target |