mirror of
https://github.com/abocn/TelegramBot.git
synced 2025-03-10 04:39:57 +00:00
Add service for auto start on Linux systems
This commit is contained in:
parent
4836180737
commit
3d89eee81a
13
TelegramBot.service
Normal file
13
TelegramBot.service
Normal file
@ -0,0 +1,13 @@
|
||||
[Unit]
|
||||
Description=TelegramBot
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/bun start
|
||||
WorkingDirectory=/home/%u/TelegramBot
|
||||
Restart=always
|
||||
User=%u
|
||||
Environment="PATH=/usr/bin:/usr/local/bin"
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
x
Reference in New Issue
Block a user