Application cookbook which installs and configures the monit process monitoring daemon. Currently it defaults to ubuntu.
- Ubuntu
- RHEL
Name | Description |
---|---|
poise | Library cookbook built to aide in writing reusable cookbooks. |
poise-service | Library cookbook built to abstract service management. |
The basic attributes to get the services up/running/monitored are available in the library. Anything additional please create a PR.
Example below:
monit_config 'your_dope_service' do
check 'process'
with 'pidfile "/var/run/your_dope_service"'
start_program "/bin/bash -c '/bin/sleep 5; /etc/init.d/your_dope_service start'"
stop_program '/etc/init.d/your_dope_service stop'
notifies :restart, "service[monit_#{new_resource.instance_name}]", :immediately
end
- Author:: Anthony Caiafa (acaiafa1@bloomberg.net)
Copyright 2015 Bloomberg Finance L.P.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.