| |
@@ -636,6 +636,14 @@
|
| |
"enable",
|
| |
"dirsrv@%s" % slapd['instance_name']])
|
| |
|
| |
+ # Setup tmpfiles_d
|
| |
+ tmpfile_d = ds_paths.tmpfiles_d + "/dirsrv-" + slapd['instance_name'] + ".conf"
|
| |
+ with open(tmpfile_d, "w") as TMPFILE_D:
|
| |
+ TMPFILE_D.write("d {} 0770 {} {}\n".format(slapd['run_dir'], slapd['user'], slapd['group']))
|
| |
+ TMPFILE_D.write("d {} 0770 {} {}\n".format(slapd['lock_dir'].replace("slapd-" + slapd['instance_name'], ""),
|
| |
+ slapd['user'], slapd['group']))
|
| |
+ TMPFILE_D.write("d {} 0770 {} {}\n".format(slapd['lock_dir'], slapd['user'], slapd['group']))
|
| |
+
|
| |
# Else we need to detect other init scripts?
|
| |
|
| |
# Bind sockets to our type?
|
| |
Description: dscreate was not creating its config file in /etc/tmpfiles.d/ like
setup-ds.pl used to do. The absence of this config file prevented
the server from being started afetr a reboot.
https://pagure.io/389-ds-base/issue/49854
Reviewed by: ?