share/linux/ar_sendmail in adzap-ar_mailer-2.1.5 vs share/linux/ar_sendmail in adzap-ar_mailer-2.1.6

- old
+ new

@@ -12,15 +12,15 @@ begin config = YAML::load(IO.read(config_file)) || {} if config.empty? || (config.has_key?('defaults') && config.size == 1) puts "No mailers defined. Exiting." - exit + exit -2 end rescue Errno::ENOENT puts "Config file not found at '#{config_file}'!" - exit + exit -3 end default_options = {'pidfile' => './log/ar_sendmail.pid'}.merge(config.delete('defaults') || {}) command, app_name = *ARGV @@ -55,10 +55,10 @@ start app, options end def command_error(msg) puts msg - exit + exit -1 end if ['start', 'stop', 'restart'].include?(command) apps = config if app_name