mirror of
https://github.com/fluent/fluentd-ui.git
synced 2025-08-14 18:27:06 +02:00
13 lines
185 B
Ruby
Executable File
13 lines
185 B
Ruby
Executable File
#!/usr/bin/env ruby
|
|
|
|
pid = ARGV.shift
|
|
begin
|
|
loop do
|
|
# wait old fluentd-ui process shutdown
|
|
Process.kill(0, pid.to_i)
|
|
sleep 0.1
|
|
end
|
|
rescue Errno::ESRCH
|
|
exec(*ARGV)
|
|
end
|