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
|
||||
|
||||
[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
|
||||
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