fluentd-ui/bin/fluentd-ui-restart

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