diff options
author | Simo Sorce <ssorce@redhat.com> | 2012-10-22 20:48:25 -0400 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2012-11-01 10:58:19 -0400 |
commit | 1ef651e7f9f5f940051dc470385aa08eefcd60af (patch) | |
tree | ff426b99e2c934073ee78f6250849976f27fc6b8 /ipapython/platform/systemd.py | |
parent | 09dbc1f36bbc14c1224e45778cbc59586dfeea75 (diff) | |
download | freeipa.git-1ef651e7f9f5f940051dc470385aa08eefcd60af.tar.gz freeipa.git-1ef651e7f9f5f940051dc470385aa08eefcd60af.tar.xz freeipa.git-1ef651e7f9f5f940051dc470385aa08eefcd60af.zip |
Save service name on service startup
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 ipacl 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.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ipapython/platform/systemd.py b/ipapython/platform/systemd.py index 6c25a79b..63414058 100644 --- a/ipapython/platform/systemd.py +++ b/ipapython/platform/systemd.py @@ -96,6 +96,7 @@ class SystemdService(base.PlatformService): 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 |