[PATCH 2/3] Add restart_service to iutil

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 pyanaconda/iutil.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/pyanaconda/iutil.py b/pyanaconda/iutil.py
index 5a3f4b4..69ad6bf 100644
--- a/pyanaconda/iutil.py
+++ b/pyanaconda/iutil.py
@@ -1036,6 +1036,9 @@ def start_service(service):
 def stop_service(service):
     return _run_systemctl("stop", service)
 
+def restart_service(service):
+    return _run_systemctl("restart", service)
+
 def service_running(service):
     ret = _run_systemctl("status", service)
 
-- 
1.7.4.4

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux