18 lines
351 B
SYSTEMD
18 lines
351 B
SYSTEMD
|
[Unit]
|
||
|
Description=Ebala-socket
|
||
|
|
||
|
Wants=network.target
|
||
|
After=syslog.target network-online.target
|
||
|
|
||
|
[Service]
|
||
|
ExecStart=sudo -u www-data /usr/bin/php /var/www/ebala/mirzaev/ebala/system/public/socket.php
|
||
|
PIDFile=/var/run/php/ebala-socket.pid
|
||
|
RemainAfterExit=no
|
||
|
RuntimeMaxSec=3600s
|
||
|
Restart=always
|
||
|
RestartSec=30s
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|
||
|
|