summaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
authorSimo Sorce <ssorce@redhat.com>2012-10-12 15:58:02 -0400
committerAlexander Bokovoy <abokovoy@redhat.com>2012-10-31 19:08:30 +0200
commitd93b01eb4012ffffe78c31bc4307b2ad961ec383 (patch)
tree4eca61d220af8cba153b4009ed40ae199ff9f0dd /init
parente7c99e7d21f7923c92cf9dae9fd8c7d5ae4aa8cd (diff)
downloadfreeipa-d93b01eb4012ffffe78c31bc4307b2ad961ec383.tar.gz
freeipa-d93b01eb4012ffffe78c31bc4307b2ad961ec383.tar.xz
freeipa-d93b01eb4012ffffe78c31bc4307b2ad961ec383.zip
Get list of service from LDAP only at startup
We dump the list retriueved from LDAP at strstup in a temporary configuration file and always use that file afterwards. We check (possibly different) data from LDAP only at (re)start. This way we always shutdown exactly the services we started even if the list changed in the meanwhile (we avoid leaving a service running even if it was removed from LDAP as the admin decided it should not be started in future). This should also fix a problematic deadlock with systemd when we try to read the list of service from LDAP at shutdown. Simo.
Diffstat (limited to 'init')
-rw-r--r--init/systemd/ipa.conf.tmpfiles1
1 files changed, 1 insertions, 0 deletions
diff --git a/init/systemd/ipa.conf.tmpfiles b/init/systemd/ipa.conf.tmpfiles
index e4b679a55..1e7a896ed 100644
--- a/init/systemd/ipa.conf.tmpfiles
+++ b/init/systemd/ipa.conf.tmpfiles
@@ -1 +1,2 @@
d /var/run/ipa_memcached 0700 apache apache
+d /var/run/ipa 0700 root root