diff options
author | elijah <elijah@riseup.net> | 2013-05-18 14:36:05 -0700 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2013-05-18 14:36:05 -0700 |
commit | 650e5794694addb5f8843f3107af7e97c45a0d3a (patch) | |
tree | 2457e2272b9c44035a7fabc7218042e6de151d67 /lib/nickserver | |
parent | 07beb2048ca78a48f16ae95baf3c0fd8e11612c4 (diff) |
`nickserver status` must exit non-zero if it daemon is not running.
Diffstat (limited to 'lib/nickserver')
-rw-r--r-- | lib/nickserver/daemon.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/nickserver/daemon.rb b/lib/nickserver/daemon.rb index a6066af..e0bd527 100644 --- a/lib/nickserver/daemon.rb +++ b/lib/nickserver/daemon.rb @@ -251,8 +251,10 @@ module Nickserver def command_status if daemon_running? puts "#{@name.capitalize} running, process id #{pid_from_file(Config.pid_file)}." + exit(0) else puts "No #{@name} processes are running." + exit(1) # must exit non-zero if not running end end |