Hi,
I've added slapd.service file. Please check.
* https://github.com/osstech-jp/openldap/pull/4 * https://patch-diff.githubusercontent.com/raw/osstech-jp/openldap/pull/4.patc...
On Thu, 10 Aug 2017 19:26:48 +0900, fumiyas wrote:
I've revised the patch for master to check if the listener initialization suceeds or not. With this patch, `slapd -d0` can return non-zero exit code if the listener initialization fails, thus systemd can detect slapd.service startup failure.
Nice catch! That change looks correct to me, but I hope Howard will check it too. Actually it's probably relevant for any init system; possibly worth splitting out as its own commit?
This patch does NOT affect SysV-init system because an init script for slapd normally does NOT use the -d option.
Just checking, do you plan to add the service file and its installation (conditional on enabled systemd support) in this branch as well, or should I work on that myself if I want it?
Yes, I'll do that later.