diff --git a/marina.service b/marina.service new file mode 100644 index 0000000..d5e3fda --- /dev/null +++ b/marina.service @@ -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