m
Size: a a a
m
m
m
[Unit]
Description=AudioTubeBot service
[Service]
Type=simple
WatchdogSec=1800
WorkingDirectory=/home/admin/audiotubebot
ExecStart=/usr/bin/python3.6 /home/admin/audiotubebot/main.py
Restart=always
RestartSec=5
SyslogIdentifier=audiotubebot-service
User=admin
[Install]
WantedBy=multi-user.targetM
m
m
m

m
[Unit]
Description=AudioTubeBot service
[Service]
Type=simple
WatchdogSec=1800
WorkingDirectory=/home/admin/audiotubebot
ExecStart=/usr/bin/python3.6 /home/admin/audiotubebot/main.py
Restart=always
RestartSec=5
SyslogIdentifier=audiotubebot-service
User=admin
[Install]
WantedBy=multi-user.targetm
sudo systemctl enable tvoibot.service
sudo systemctl daemon-reload
sudo systemctl start tvoibot.servicem
sudo systemctl status tvoibot.service - чтобы узнать статус текущий работы сервисаsudo systemctl stop tvoibot.service - остановитьsudo systemctl restart tvoibot.service - перезапуститьm
$● opentfd.service - Open-source Telegram Flood Daemon service$Loaded: loaded (/etc/systemd/system/opentfd.service; enabled; vendor preset: disabled)$Active: active (running) since Thu 2020-09-03 13:45:09 MSK; 1 day 3h ago$Main PID: 1403 (opentfd)$CGroup: /system.slice/opentfd.service$├─ 1403 /home/slavikmipt/opentfd/opentfd$├─ 1431 /home/slavikmipt/opentfd/opentfd$└─20202 systemctl status opentfd.service$Sep 03 13:45:09 slavikmipt.example.com systemd[1]: Started Open-source Telegram Flood Daemon service.m
$[Unit]$Description=Open-source Telegram Flood Daemon service$[Service]$WorkingDirectory=/home/slavikmipt/opentfd$ExecStart=/home/slavikmipt/opentfd/opentfd$Restart=always$RestartSec=10$SyslogIdentifier=python-opentfd$User=slavikmipt$[Install]$WantedBy=multi-user.targetm
m
m
M
M
m
m
$[Unit]$Description=Open-source Telegram Flood Daemon service$[Service]$WorkingDirectory=/home/slavikmipt/opentfd$ExecStart=/home/slavikmipt/opentfd/opentfd$Restart=always$RestartSec=10$SyslogIdentifier=python-opentfd$User=slavikmipt$[Install]$WantedBy=multi-user.targetm