root@v1266537:/usr/bin# systemctl -l status zaim.service
● zaim.service - zaim_bot
Loaded: loaded (/etc/systemd/system/zaim.service; static; vendor preset: enabled)
Active: failed (Result: exit-code) since Fri 2022-07-08 19:34:43 MSK; 15min ago
Main PID: 68037 (code=exited, status=217/USER)
Jul 08 19:34:43 v1266537.hosted-by-vdsina.ru systemd[1]: zaim.service: Scheduled restart job, restart counter is at 5.
Jul 08 19:34:43 v1266537.hosted-by-vdsina.ru systemd[1]: Stopped zaim_bot.
Jul 08 19:34:43 v1266537.hosted-by-vdsina.ru systemd[1]: zaim.service: Start request repeated too quickly.
Jul 08 19:34:43 v1266537.hosted-by-vdsina.ru systemd[1]: zaim.service: Failed with result 'exit-code'.
Jul 08 19:34:43 v1266537.hosted-by-vdsina.ru systemd[1]: Failed to start zaim_bot.
[Unit]
Description=zaim_bot
After=syslog.target
After=network.target
[Service]
Type=simple
PIDFile=/root/zaim_bot/service.pid
WorkingDirectory=/root/zaim_bot/service
User=ec2-user
Group=ec2-user
ExecStart=/usr/bin/python3 /root/zaim_bot/main.py
ExecStop=kill $(cat /root/zaim_bot/service.pid)
Restart=on-failure
RestartSec=1s