runit: kill any telegram instances before start

This commit is contained in:
lelgenio 2021-10-09 14:58:00 -03:00
parent f046ed2a8f
commit f58c755441
1 changed files with 7 additions and 0 deletions

View File

@ -1,5 +1,12 @@
#!/bin/sh
while pidof telegram-desktop-bin telegram-desktop
do
pkill telegram-desktop
pkill telegram-desktop-bin
sleep 1s
done
command -v telegram-desktop-bin &&
exec telegram-desktop-bin ||
exec telegram-desktop