From 611c2f52df1308de45b0c2b4fe02e74865de8d0c Mon Sep 17 00:00:00 2001 From: mirzaev Date: Sun, 31 Dec 2023 13:45:12 +0700 Subject: [PATCH] systemd service --- marina.service | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 marina.service 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