services: Kill waybar processes before starting service

This commit is contained in:
Marty Oehme 2025-09-21 15:41:18 +02:00
parent 1c95446ce0
commit b52d58dd58
Signed by: Marty
GPG key ID: 4E535BC19C61886E

View file

@ -1,6 +1,9 @@
#!/bin/sh #!/bin/sh
#shellcheck disable=SC1091
[ -r ./conf ] && . ./conf [ -r ./conf ] && . ./conf
pgrep -x waybar && pkill -x waybar
exec 2>&1 exec 2>&1
exec chpst -e "$TURNSTILE_ENV_DIR" waybar exec chpst -e "$TURNSTILE_ENV_DIR" waybar