Edit service file
This commit is contained in:
parent
3d89eee81a
commit
ec8ab02f27
1 changed files with 1 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue