Boring hack because sometimes dbus is not started/enabled ...

This commit is contained in:
Alexandre Aubin 2023-03-27 16:00:04 +02:00
parent 15caedaa3a
commit 66153444b2

View file

@ -533,7 +533,9 @@ function restart_services() {
service unscd restart
service nslcd restart
# NOTE : We don't fail if slapd fails to restart...
# For some reason sometimes dbus is not properly started/enabled ...
systemctl is-active dbus >/dev/null || systemctl enable dbus --now
return 0
}