]> code.delx.au - monosys/blob - healthcheck/systemd-user-units
healthcheck: don't check for updates
[monosys] / healthcheck / systemd-user-units
1 #!/bin/bash
2
3 if systemctl --user is-system-running > /dev/null; then
4 exit 0
5 fi
6
7 if systemctl --user is-system-running 2>&1 | grep -q 'Failed to connect to bus'; then
8 exit 0
9 fi
10
11 echo -e "# systemctl --user --failed"
12 systemctl --user --failed
13 exit 1