foreman-capistrano 0.52.1 → 0.52.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -42,13 +42,14 @@ function stop() {
42
42
  read pid < $PID_FILE
43
43
  if checkpid $pid 2>&1; then
44
44
  kill -TERM $pid
45
- if [ $? -eq 0 ]; then
45
+ sleep 1
46
+ if checkpid $pid 2>&1; then
47
+ echo "[FAILED TO STOP. TERMINATING]"
48
+ kill -KILL $pid
49
+ else
46
50
  echo $! > $PID_FILE
47
51
  echo "[OK]"
48
52
  rm -rf $PID_FILE
49
- else
50
- echo "[FAIL]"
51
- exit $STATUS_UNKNOWN
52
53
  fi
53
54
  else
54
55
  echo "[FAIL] process with PID ${pid} does not exist"
@@ -154,7 +154,7 @@ class Foreman::Engine
154
154
  # @returns [String] The root directory
155
155
  #
156
156
  def root
157
- File.expand_path(options[:root] || Dir.pwd)
157
+ File.expand_path(options[:root] || `pwd -L`.strip)
158
158
  end
159
159
 
160
160
  # Get the port for a given process and offset
@@ -1,5 +1,5 @@
1
1
  module Foreman
2
2
 
3
- VERSION = "0.52.1"
3
+ VERSION = "0.52.2"
4
4
 
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman-capistrano
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.52.1
4
+ version: 0.52.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: