Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- service "condor_master" do
- provider Chef::Provider::Service::Simple
- supports :status => true, :restart => true, :start => true, :stop => true
- start_command <<-EoC
- . /etc/profile.d/condor.sh
- #{installdir}/sbin/condor_master
- EoC
- status_command "pgrep condor_master"
- stop_command "pkill -u condor condor_master"
- restart_command <<-EoC
- pkill -u condor condor_master
- sleep 2
- . /etc/profile.d/condor.sh
- #{installdir}/sbin/condor_master
- EoC
- action [ :start ]
- subscribes :restart, resources( :template => configfile ), :immediately
- end
Add Comment
Please, Sign In to add comment