Guest User

Untitled

a guest
Jun 20th, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. service "condor_master" do
  2. provider Chef::Provider::Service::Simple
  3. supports :status => true, :restart => true, :start => true, :stop => true
  4. start_command <<-EoC
  5. . /etc/profile.d/condor.sh
  6. #{installdir}/sbin/condor_master
  7. EoC
  8. status_command "pgrep condor_master"
  9. stop_command "pkill -u condor condor_master"
  10. restart_command <<-EoC
  11. pkill -u condor condor_master
  12. sleep 2
  13. . /etc/profile.d/condor.sh
  14. #{installdir}/sbin/condor_master
  15. EoC
  16. action [ :start ]
  17. subscribes :restart, resources( :template => configfile ), :immediately
  18. end
Add Comment
Please, Sign In to add comment