systemd service
This commit is contained in:
parent
ba984df67a
commit
611c2f52df
|
@ -0,0 +1,17 @@
|
|||
[Unit]
|
||||
Description=Marina
|
||||
|
||||
Wants=network.target
|
||||
After=syslog.target network-online.target
|
||||
|
||||
[Service]
|
||||
WorkingDirectory=/var/www/marina/mirzaev/marina/system/public/
|
||||
ExecStart=/usr/bin/php robot.php
|
||||
PIDFile=/var/run/php/marina.pid
|
||||
RemainAfterExit=no
|
||||
RuntimeMaxSec=3600s
|
||||
Restart=always
|
||||
RestartSec=5s
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Reference in New Issue