leftbot/systemd-example.service

17 lines
278 B
SYSTEMD
Raw Normal View History

2019-09-20 06:34:10 +00:00
[Unit]
Description=Reply service for my bot
After=network.target
[Service]
Type=simple
User=bots
WorkingDirectory=/path/to/bot
ExecStart=/usr/bin/python3 /path/to/bot/reply.py
TimeoutSec=3600
Restart=always
RestartSec=30
StartLimitBurst=3
[Install]
WantedBy=multi-user.target