systemd service

This commit is contained in:
Arsen Mirzaev Tatyano-Muradovich 2023-12-31 13:45:12 +07:00
parent ba984df67a
commit 611c2f52df

17
marina.service Normal file
View File

@ -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