store status files in /dev/shm
This commit is contained in:
parent
8b69fb745a
commit
e1f29b555c
6
app.rb
6
app.rb
@ -134,7 +134,7 @@ class Health
|
|||||||
include UpDown
|
include UpDown
|
||||||
|
|
||||||
def initialize
|
def initialize
|
||||||
@file = "./healthy"
|
@file = "/dev/shm/healthy"
|
||||||
end
|
end
|
||||||
|
|
||||||
def healthy?
|
def healthy?
|
||||||
@ -148,7 +148,7 @@ class Ready
|
|||||||
include UpDown
|
include UpDown
|
||||||
|
|
||||||
def initialize
|
def initialize
|
||||||
@file = "./ready"
|
@file = "/dev/shm/ready"
|
||||||
end
|
end
|
||||||
|
|
||||||
def ready?
|
def ready?
|
||||||
@ -161,7 +161,7 @@ class Sleep
|
|||||||
include State
|
include State
|
||||||
|
|
||||||
def initialize
|
def initialize
|
||||||
@file = "./sleep"
|
@file = "/dev/shm/sleep"
|
||||||
end
|
end
|
||||||
|
|
||||||
def asleep?
|
def asleep?
|
||||||
|
Loading…
x
Reference in New Issue
Block a user