Add service for auto start on Linux systems
This commit is contained in:
parent
4836180737
commit
3d89eee81a
1 changed files with 13 additions and 0 deletions
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…
Add table
Add a link
Reference in a new issue