runit-man 1.7.3 → 1.7.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/runit-man/log_location_cache.rb +4 -6
- data/views/_services.erb +1 -1
- metadata +3 -3
@@ -47,11 +47,9 @@ private
|
|
47
47
|
def log_command(lpid)
|
48
48
|
return nil if lpid.nil?
|
49
49
|
ps_output = `ps -o args -p #{lpid} 2>&1`.split("\n")
|
50
|
-
ps_output.
|
51
|
-
cmd = ps_output.
|
52
|
-
cmd
|
53
|
-
cmd = nil if cmd == ''
|
54
|
-
cmd
|
50
|
+
return nil if ps_output.length < 2
|
51
|
+
cmd = ps_output[1].chomp
|
52
|
+
cmd != '' ? cmd : nil
|
55
53
|
end
|
56
54
|
|
57
55
|
def log_folder(lpid)
|
@@ -59,7 +57,7 @@ private
|
|
59
57
|
return nil if cmd.nil?
|
60
58
|
args = cmd.split(/\s+/).select { |arg| arg !~ /^\-/ }
|
61
59
|
return nil if args.shift !~ /svlogd/
|
62
|
-
args.
|
60
|
+
args.first
|
63
61
|
end
|
64
62
|
|
65
63
|
def set_pid_log_location(pid, log_location)
|
data/views/_services.erb
CHANGED
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 1
|
7
7
|
- 7
|
8
|
-
-
|
9
|
-
version: 1.7.
|
8
|
+
- 4
|
9
|
+
version: 1.7.4
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Akzhan Abdulin
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-05-
|
17
|
+
date: 2010-05-24 00:00:00 +04:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|