TFTP Service 1.0.7 (#1877)
* 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
This commit is contained in:
@@ -1,19 +1,26 @@
|
||||
[Unit]
|
||||
Description={$name}
|
||||
Description={$fullname}
|
||||
After=syslog.target network.target {$database}
|
||||
Requires={$database}
|
||||
|
||||
[Service]
|
||||
User=www-data
|
||||
Group=www-data
|
||||
WorkingDirectory={$scriptfolder}
|
||||
Type=simple
|
||||
PIDFile=/run/{$shortname}.pid
|
||||
WorkingDirectory={$scriptfolder}
|
||||
StandardOutput=null
|
||||
StandardError=syslog
|
||||
ExecStart=/usr/bin/php {$scriptname}
|
||||
ExecStart=/usr/bin/php {$scriptpath}
|
||||
ExecStop=/bin/kill $MAINPID
|
||||
PrivateTmp=true
|
||||
InaccessibleDirectories=/home /root /boot /opt /mnt /media /etc /usr
|
||||
ReadOnlyDirectories=
|
||||
InaccessibleDirectories=/home /root /boot /opt /mnt /media
|
||||
ReadOnlyDirectories=/etc /usr
|
||||
|
||||
;Permissions
|
||||
User=root
|
||||
Group=daemon
|
||||
|
||||
;Limits
|
||||
LimitCORE=1
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user