Fix startup of the dirsrv@master Systemd unit on boot #164

Manually merged
greg merged 2 commits from bugfix/enable_dirsrv into master 2020-05-15 15:24:44 +00:00
Showing only changes of commit 10f0460fd5 - Show all commits

View File

@ -56,7 +56,14 @@ action :create do
end
service service_name do
action [:enable, :start]
action [:start]
end
# :enable on the dirsrv@master service creates the wrong file
# (/etc/systemd/system/dirsrv.target.wants/dirsrv@master.service), seems to
# be a Chef bug. Let's do it manually
link "/etc/systemd/system/multi-user.target.wants/dirsrv@master.service" do
to "/lib/systemd/system/dirsrv@.service"
end
cookbook_file "#{Chef::Config[:file_cache_path]}/users.ldif" do