Skip to content

Commit

Permalink
[Core] Fix additional unit detection in dbus restart handler (closes #…
Browse files Browse the repository at this point in the history
…104 by Alexander Barton @alexbarton).
  • Loading branch information
liske committed Feb 18, 2018
1 parent c9e5ee1 commit 878a6be
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ needrestart (3.0) unstable; urgency=medium
(github issue #99 by @glitsj16)
- [Hook] Replace remaining calls of rpmquery by rpm.
(github issue #100 by Matthias Hörmann @taladar)
- [Core] Fix additional unit detection in dbus restart handler.
(github issue #104 by Alexander Barton @alexbarton)

-- Thomas Liske <thomas@fiasko-nw.net>

Expand Down
2 changes: 1 addition & 1 deletion ex/restart.d/dbus.service
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ RESTART_CHK="NetworkManager.service"
RESTART_SVC="systemd-logind.service systemd-journald.service"
for svc in $RESTART_CHK; do
if [ "$(systemctl show $svc --property=ActiveState)" = 'ActiveState=active' ]; then
RESTART_ADD="$RESTART_ADD $svc"
RESTART_SVC="$RESTART_SVC $svc"
fi
done

Expand Down

0 comments on commit 878a6be

Please sign in to comment.