sonian/sensu — pull request #164 by joemiller (2011-12-24 00:30:32+00:00)
Title: updated cent5 init scripts to use new -b and -p command line switches

- init scripts now use -b (background)
- init scripts now use -p pidfile
- added 'ensure_pid_dir' function to make sure pid dir is created and chowned properly (idea taken from rabbitmq-server init script)
- removed check for config.json file since there's a possibility that it may not exist in the future, if conf.d snippets are used instead. If the file doesn't exist, startup will fail anyway.

NOTE: this template file also creates the sensu-dashboard init script. However, we have not yet applied the -b and -p patches to dashboard so it will not start correctly with this script yet.