Ido Barkan has uploaded a new change for review.

Change subject: shell-helper: stop using service command
......................................................................

shell-helper: stop using service command

In master we can safely use systemctl since we do not support systemv
anymore. Also, the 'status' and 'stop' verbs support multiple
arguments so this allows the use of less shell command.

Change-Id: Ie11bba182fd89f86c46bdbb896dd4d73005399e4
Signed-off-by: Ido Barkan <[email protected]>
---
M contrib/shell_helper
1 file changed, 4 insertions(+), 7 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/15/49215/1

diff --git a/contrib/shell_helper b/contrib/shell_helper
index 8e1dd97..f9d95c7 100755
--- a/contrib/shell_helper
+++ b/contrib/shell_helper
@@ -18,14 +18,11 @@
 }
 
 vdsm_restart() {
-    sudo service vdsmd stop && sudo service supervdsmd stop
-    sudo service vdsmd start
+    sudo systemctl stop vdsmd supervdsmd
+    sudo systemctl start vdsmd
     sleep 3
-    service vdsm-network-cleanup status | egrep -i "activ|failed"
-    service vdsm-network status | egrep -i "activ|failed"
-    service vdsmd status | egrep -i "activ|failed"
-    service supervdsmd status | egrep -i "activ|failed"
-}
+    systemctl status vdsm-network vdsmd supervdsmd | egrep -i 
"activ|failed|vdsm-network|vdsmd"
+    }
 
 vdsm_caps_nonsecure() {
     if [ -t 1 ]; then


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie11bba182fd89f86c46bdbb896dd4d73005399e4
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Ido Barkan <[email protected]>
_______________________________________________
vdsm-patches mailing list
[email protected]
https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches

Reply via email to