diff --git a/site-cookbooks/kosmos-dirsrv/resources/instance.rb b/site-cookbooks/kosmos-dirsrv/resources/instance.rb index 3d66111..89174e5 100644 --- a/site-cookbooks/kosmos-dirsrv/resources/instance.rb +++ b/site-cookbooks/kosmos-dirsrv/resources/instance.rb @@ -57,7 +57,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]}/acis.ldif" do