fork/exec string command for self-daemonizing process, but wait for process to exit
[god.git] / test / configs / daemon_events / simple_server_stop.rb
blob22d03bbf5442e911336ed8068e10595b6386a7d2
1 3.times do
2   puts 'waiting'
3   sleep 1
4 end
6 command = '/usr/local/bin/ruby ' + File.join(File.dirname(__FILE__), *%w[simple_server.rb]) + ' stop'
7 system(command)