diff options
author | Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> | 2019-06-18 12:44:51 +0200 |
---|---|---|
committer | Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> | 2019-06-18 12:44:51 +0200 |
commit | 725ca7ade603ddf151ad365e121c9986c2d014f6 (patch) | |
tree | 20923edf3192a8463114f376d95d91a3435fd33e /pykolab/setup | |
parent | c85dd2472e3cd5469d5b94d113c8a0dd5e36480a (diff) | |
download | pykolab-725ca7ade603ddf151ad365e121c9986c2d014f6.tar.gz |
Enable dirsrv.target
Diffstat (limited to 'pykolab/setup')
-rw-r--r-- | pykolab/setup/setup_ldap.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pykolab/setup/setup_ldap.py b/pykolab/setup/setup_ldap.py index 1449a59..8dc6327 100644 --- a/pykolab/setup/setup_ldap.py +++ b/pykolab/setup/setup_ldap.py @@ -417,6 +417,7 @@ ServerAdminPwd = %(admin_pass)s schema_error = True if os.path.isfile('/bin/systemctl'): + subprocess.call(['/bin/systemctl', 'restart', 'dirsrv.target']) subprocess.call(['/bin/systemctl', 'restart', 'dirsrv@' + _input['hostname']]) time.sleep(20) elif os.path.isfile('/sbin/service'): @@ -429,6 +430,7 @@ ServerAdminPwd = %(admin_pass)s log.error(_("Could not start the directory server service.")) if os.path.isfile('/bin/systemctl'): + subprocess.call(['/bin/systemctl', 'enable', 'dirsrv.target']) subprocess.call(['/bin/systemctl', 'enable', 'dirsrv@' + _input['hostname']]) elif os.path.isfile('/sbin/chkconfig'): subprocess.call(['/sbin/chkconfig', 'dirsrv', 'on']) |