capricorn 0.2.02 → 0.2.03
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/capricorn/actors/passenger_actor.rb +10 -1
- metadata +1 -1
@@ -9,11 +9,20 @@ module Capricorn
|
|
9
9
|
# restart the current satellite.
|
10
10
|
def restart
|
11
11
|
system.as_user(system.web_user, system.web_group) do
|
12
|
-
tmp_restart =
|
12
|
+
tmp_restart = system.passenger_restart_txt
|
13
13
|
FileUtils.touch tmp_restart, :verbose => true
|
14
14
|
end
|
15
15
|
end
|
16
16
|
|
17
|
+
module Config
|
18
|
+
|
19
|
+
# set the passneger restart file.
|
20
|
+
def passenger_restart_txt(&block)
|
21
|
+
satellite_option(:passenger_restart_txt, block) { |v,s| v || File.join(satellite_root, 'tmp', 'restart.txt') }
|
22
|
+
end
|
23
|
+
|
24
|
+
end
|
25
|
+
|
17
26
|
end
|
18
27
|
end
|
19
28
|
end
|