summaryrefslogtreecommitdiffstats
path: root/ipapython/platform/systemd.py
diff options
context:
space:
mode:
authorSimo Sorce <ssorce@redhat.com>2012-10-22 17:01:58 -0400
committerSimo Sorce <simo@redhat.com>2012-11-01 14:24:41 -0400
commit57132797120bcd3f68380b6b74343af2d83e0657 (patch)
tree25b9cdf6b8975cb1e2aa175f63d0f47b657e80fa /ipapython/platform/systemd.py
parent895b2e2b4339f1b9edc2bc995e7548ac118ea5a1 (diff)
downloadfreeipa.git-57132797120bcd3f68380b6b74343af2d83e0657.tar.gz
freeipa.git-57132797120bcd3f68380b6b74343af2d83e0657.tar.xz
freeipa.git-57132797120bcd3f68380b6b74343af2d83e0657.zip
Save service name on service startup/shutdown
This is done as a default action of the ancestor class so that no matter what platform is currently used this code is always the same and the name is the wellknown service name. This information will be used by ipactl to stop only and all the services that have been started by any ipa tool/install script
Diffstat (limited to 'ipapython/platform/systemd.py')
-rw-r--r--ipapython/platform/systemd.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/ipapython/platform/systemd.py b/ipapython/platform/systemd.py
index 6c25a79b..bb6c0092 100644
--- a/ipapython/platform/systemd.py
+++ b/ipapython/platform/systemd.py
@@ -91,11 +91,13 @@ class SystemdService(base.PlatformService):
def stop(self, instance_name="", capture_output=True):
ipautil.run(["/bin/systemctl", "stop", self.service_instance(instance_name)], capture_output=capture_output)
+ super(SystemdService, self).stop(instance_name)
def start(self, instance_name="", capture_output=True, wait=True):
ipautil.run(["/bin/systemctl", "start", self.service_instance(instance_name)], capture_output=capture_output)
if wait and self.is_running(instance_name):
self.__wait_for_open_ports(self.service_instance(instance_name))
+ super(SystemdService, self).start(instance_name)
def restart(self, instance_name="", capture_output=True, wait=True):
# Restart command is broken before systemd-36-3.fc16