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.
@@ -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.shift
51
- cmd = ps_output.first
52
- cmd = cmd.chomp unless cmd.nil?
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.shift
60
+ args.first
63
61
  end
64
62
 
65
63
  def set_pid_log_location(pid, log_location)
data/views/_services.erb CHANGED
@@ -12,7 +12,7 @@
12
12
  </thead>
13
13
  <tfoot>
14
14
  <tr>
15
- <td colspan="5"><%= t.runit.services.table.footer(h(Time.now.utc)) %></td>
15
+ <td colspan="6"><%= t.runit.services.table.footer(h(Time.now.utc)) %></td>
16
16
  </tr>
17
17
  </tfoot>
18
18
  <tbody>
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 7
8
- - 3
9
- version: 1.7.3
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-21 00:00:00 +04:00
17
+ date: 2010-05-24 00:00:00 +04:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency