lib/runit-man/service_status.rb in runit-man-1.8.4 vs lib/runit-man/service_status.rb in runit-man-1.9.0
- old
+ new
@@ -52,9 +52,10 @@
def got_term?
pid && @raw[4] != 0
end
def to_s
+ return 'inactive' if inactive?
# try to mimics stat behaviour to minimize readings
result = status_string
result += ', got TERM' if got_term?
result += ', want down' if want_down?
result += ', want up' if want_up?