Fix: Needs to look up status in user service
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
06824e9548
commit
870b25c741
1 changed files with 2 additions and 2 deletions
4
bin/lock
4
bin/lock
|
@ -18,7 +18,7 @@ function log() {
|
|||
|
||||
# Disable systemd user services
|
||||
for svc in "${systemd_services[@]}"; do
|
||||
systemctl is-active ${svc} >/dev/null 2>&1 && systemctl --user stop ${svc} || log "Service ${svc} not active / not found"
|
||||
systemctl --user is-active ${svc} >/dev/null 2>&1 && systemctl --user stop ${svc} || log "Service ${svc} not active / not found"
|
||||
done
|
||||
|
||||
# Terminate Discord in order to get mobile notifications
|
||||
|
@ -34,5 +34,5 @@ i3lock -e -f -n -c 000000
|
|||
|
||||
# Restart user-services
|
||||
for svc in "${systemd_services[@]}"; do
|
||||
systemctl is-enabled ${svc} >/dev/null 2>&1 && systemctl --user start ${svc} || log "Service ${svc} not enabled, skipping start"
|
||||
systemctl --user is-enabled ${svc} >/dev/null 2>&1 && systemctl --user start ${svc} || log "Service ${svc} not enabled, skipping start"
|
||||
done
|
||||
|
|
Loading…
Reference in a new issue