[node-patches] Change in ovirt-node[ovirt-3.5]: init: Isolate the default target again

fabiand at redhat.com fabiand at redhat.com
Tue Sep 15 12:59:56 UTC 2015


Fabian Deutsch has uploaded a new change for review.

Change subject: init: Isolate the default target again
......................................................................

init: Isolate the default target again

Re-Isolating the default target again shall have the effect that new
target dependencies which got mounted in, are now recognized, and jobs
are queued to bring up those requirements.

This patch only provides the foundation.
To persist the service states the user also needs to call:

$ persist /etc/systemd/system

That way all the symlinks to the default.target are also persisted
and restored during boot.

Change-Id: I370fe05fe2d20ed5e96e743b5c362222e0af04cd
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1237212
Signed-off-by: Fabian Deutsch <fabiand at fedoraproject.org>
---
M scripts/ovirt-init-functions.sh.in
1 file changed, 5 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/72/46172/1

diff --git a/scripts/ovirt-init-functions.sh.in b/scripts/ovirt-init-functions.sh.in
index 34d24d0..9124fb1 100644
--- a/scripts/ovirt-init-functions.sh.in
+++ b/scripts/ovirt-init-functions.sh.in
@@ -870,6 +870,11 @@
         if [[ -e "/bin/systemctl" ]];
         then
             systemctl daemon-reload
+            systemctl --no-block isolate default.target
+            service auditd restart
+        else
+            # EL6
+            initctl reload-configuration
         fi
 
         # A few services need to be restarted to pickup the newly bind-mounted


-- 
To view, visit https://gerrit.ovirt.org/46172
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I370fe05fe2d20ed5e96e743b5c362222e0af04cd
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: ovirt-3.5
Gerrit-Owner: Fabian Deutsch <fabiand at redhat.com>
Gerrit-Reviewer: Fabian Deutsch <fabiand at redhat.com>



More information about the node-patches mailing list