Ubuntu 18.04.
/etc/systemd/system/start_bot.service:
[Unit]
Description=VkImageBot
After=multi-user.target
[Service]
Type=idle
ExecStart=/usr/bin/python3 /home/ftproot/vk_image_bot.py
Restart=always
[Install]
WantedBy=multi-user.target
После выполнения sudo systemctl start sitbot.service ничего, sudo systemctl status sitbot.service:
● start_bot.service - VkImageBot
Loaded: loaded (/etc/systemd/system/start_bot.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Fri 2019-05-03 12:44:51 CEST; 1s ago
Process: 28107 ExecStart=/usr/bin/python3 /home/ftproot/vk_image_bot/start_bot.py (code=exited, status=1/FAILUR
Main PID: 28107 (code=exited, status=1/FAILURE)
May 03 12:44:51 shostvo100vkbot.tk systemd[1]: start_bot.service: Main process exited, code=exited, status=1/FAIL
May 03 12:44:51 shostvo100vkbot.tk systemd[1]: start_bot.service: Failed with result 'exit-code'.
May 03 12:44:51 shostvo100vkbot.tk systemd[1]: start_bot.service: Service hold-off time over, scheduling restart.
May 03 12:44:51 shostvo100vkbot.tk systemd[1]: start_bot.service: Scheduled restart job, restart counter is at 5.
May 03 12:44:51 shostvo100vkbot.tk systemd[1]: Stopped VkImageBot.
May 03 12:44:51 shostvo100vkbot.tk systemd[1]: start_bot.service: Start request repeated too quickly.
May 03 12:44:51 shostvo100vkbot.tk systemd[1]: start_bot.service: Failed with result 'exit-code'.
May 03 12:44:51 shostvo100vkbot.tk systemd[1]: Failed to start VkImageBot.
lines 1-14/14 (END)