mirror of
https://github.com/abocn/TelegramBot.git
synced 2025-04-28 17:15:57 +00:00
Edit service file
This commit is contained in:
parent
3d89eee81a
commit
ec8ab02f27
@ -3,11 +3,10 @@ Description=TelegramBot
|
|||||||
After=network.target
|
After=network.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=/usr/bin/bun start
|
ExecStart=bash -c 'source $HOME/.profile && (command -v bun &> /dev/null && exec bun start || exec npm start)'
|
||||||
WorkingDirectory=/home/%u/TelegramBot
|
WorkingDirectory=/home/%u/TelegramBot
|
||||||
Restart=always
|
Restart=always
|
||||||
User=%u
|
User=%u
|
||||||
Environment="PATH=/usr/bin:/usr/local/bin"
|
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
Loading…
x
Reference in New Issue
Block a user