From 7a4685d28d71d92f14bac1c054d27da8af4fc414 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Thu, 14 Apr 2011 09:54:46 +0000 Subject: [PATCH] Openldap needs a directory in /var/run to start, and it seems it's clean at every boot. svn path=/nixos/trunk/; revision=26840 --- modules/services/databases/openldap.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/services/databases/openldap.nix b/modules/services/databases/openldap.nix index b4df790010b6..4186fdc72ac9 100644 --- a/modules/services/databases/openldap.nix +++ b/modules/services/databases/openldap.nix @@ -50,6 +50,10 @@ in startOn = "filesystem"; daemonType = "fork"; + preStart = + '' + mkdir -p /var/run/slapd + ''; exec = "${openldap}/libexec/slapd -f ${configFile}"; };