2 Commits
1.0.1 ... 1.1.1

Author SHA1 Message Date
23ccfcdc93 fix 2024-04-15 23:58:37 +07:00
31022e24af systemd service 2024-04-15 23:54:18 +07:00
9 changed files with 19 additions and 2 deletions

View File

@@ -4,7 +4,7 @@
"license": "WTFPL",
"autoload": {
"psr-4": {
"mirzaev\\spetsresurs\\\\telegram\\robot\\entry\\": "mirzaev/spetsresurs/telegram/robot/entry/system/"
"mirzaev\\spetsresurs\\telegram\\robot\\entry\\": "mirzaev/spetsresurs/telegram/robot/entry/system/"
}
},
"authors": [

View File

@@ -23,7 +23,7 @@ use Google\Client,
Google\Service\Sheets\ValueRange;
require __DIR__ . '/../../../../../../vendor/autoload.php';
require __DIR__ . '/../../../../../../../vendor/autoload.php';
/* ini_set('error_reporting', E_ALL);
ini_set('display_errors', 1);

17
telegram-robot-entry.service Executable file
View File

@@ -0,0 +1,17 @@
[Unit]
Description=Telegram-robot-entry
Wants=network.target
After=syslog.target network-online.target
[Service]
ExecStart=sudo -u www-data /usr/bin/php /var/www/spetsresurs-telegram-robot-entry/mirzaev/spetsresurs/telegram/robot/entry/system/public/robot.php
PIDFile=/var/run/php/telegram-robot-entry.pid
RemainAfterExit=no
RuntimeMaxSec=3600s
Restart=always
RestartSec=5s
[Install]
WantedBy=multi-user.target