add systemd unit file.

This commit is contained in:
rainerosion 2021-01-17 18:45:28 +08:00
parent 5f98f4de29
commit ad4b39d8dd

12
e5sub.service Normal file
View File

@ -0,0 +1,12 @@
[Unit]
Description=Telegram E5Sub Bot
[Service]
Type=simple
WorkingDirectory=/opt/e5sub
ExecStart=/opt/e5sub/E5SubBot
Restart=always
RestartSec=30
[Install]
WantedBy=multi-user.target