Permalink
Browse files

fixed bug with daemon failing on startup, by expanding pid file to fu…

…ll path
  • Loading branch information...
1 parent 91a6b42 commit 2bca8fee97effb3336f19abaea5d6bbd09b83ad8 @adzap committed Jul 3, 2008
Showing with 10 additions and 3 deletions.
  1. +1 −0 .gitignore
  2. +6 −0 History.txt
  3. +1 −1 ar_mailer.gemspec
  4. +2 −2 lib/action_mailer/ar_sendmail.rb
View
1 .gitignore
@@ -0,0 +1 @@
+pkg/*
View
6 History.txt
@@ -1,5 +1,11 @@
+= 1.4.1
+
+* Bugs fixed
+ * Daemon failed on startup fixed with expanding full path of pid file
+
= 1.4.0
+* Forked gem and published on GitHub (gem sources -a http://gems.github.com)
* New Features
* Added pid file creation on daemonize with command line option to specify pid filename [Dylan Egan]
View
2 ar_mailer.gemspec
@@ -1,6 +1,6 @@
Gem::Specification.new do |s|
s.name = %q{ar_mailer}
- s.version = "1.4.0"
+ s.version = "1.4.1"
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Eric Hodel"]
View
4 lib/action_mailer/ar_sendmail.rb
@@ -54,7 +54,7 @@ class ActionMailer::ARSendmail
##
# The version of ActionMailer::ARSendmail you are running.
- VERSION = '1.3.1'
+ VERSION = '1.4.1'
##
# Maximum number of times authentication will be consecutively retried
@@ -351,7 +351,7 @@ def self.run(args = ARGV)
if options[:Daemon] then
require 'webrick/server'
- @@pid_file = options[:Pidfile]
+ @@pid_file = File.expand_path(options[:Pidfile])
if File.exists? @@pid_file
# check to see if process is actually running
pid = ''

0 comments on commit 2bca8fe

Please sign in to comment.