runit: kill any telegram instances before start
This commit is contained in:
parent
f046ed2a8f
commit
f58c755441
|
@ -1,5 +1,12 @@
|
||||||
#!/bin/sh
|
#!/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 &&
|
command -v telegram-desktop-bin &&
|
||||||
exec telegram-desktop-bin ||
|
exec telegram-desktop-bin ||
|
||||||
exec telegram-desktop
|
exec telegram-desktop
|
||||||
|
|
Reference in New Issue