README.md in bluepill-0.0.44 vs README.md in bluepill-0.0.45

- old
+ new

@@ -1,18 +1,18 @@ # Bluepill Bluepill is a simple process monitoring tool written in Ruby. ## Installation -It's hosted on [gemcutter.org][gemcutter]. +It's hosted on [gemcutter.org][gemcutter]. sudo gem install bluepill In order to take advantage of logging with syslog, you also need to setup your syslog to log the local6 facility. Edit the appropriate config file for your syslogger (/etc/syslog.conf for syslog) and add a line for local6: local6.* /var/log/bluepill.log -You'll also want to add _/var/log/bluepill.log_ to _/etc/logrotate.d/syslog_ so that it gets rotated. +You'll also want to add _/var/log/bluepill.log_ to _/etc/logrotate.d/syslog_ so that it gets rotated. Lastly, create the _/var/bluepill_ directory for bluepill to store its pid and sock files. ## Usage ### Config @@ -35,11 +35,11 @@ process.pid_file = "/tmp/some_pid_file.pid" process.daemonize = true end end -If you don't specify a stop command, a TERM signal will be sent by default. Similarly, the default restart action is to issue stop and then start. +If you don't specify a stop command, a TERM signal will be sent by default. Similarly, the default restart action is to issue stop and then start. Now if we want to do something more meaningful, like actually monitor the process, we do: Bluepill.application("app_name") do |app| app.process("process_name") do |process| @@ -201,10 +201,10 @@ To quit bluepill: sudo bluepill quit ### Logging -By default, bluepill uses syslog local6 facility as described in the installation section. But if for any reason you don't want to use syslog, you can use a log file. You can do this by setting the :log\_file option in the config: +By default, bluepill uses syslog local6 facility as described in the installation section. But if for any reason you don't want to use syslog, you can use a log file. You can do this by setting the :log\_file option in the config: Bluepill.application("app_name", :log_file => "/path/to/bluepill.log") do |app| # ... end \ No newline at end of file