repo.or.cz
/
god.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
fork/exec string command for self-daemonizing process, but wait for process to exit
[god.git]
/
test
/
configs
/
daemon_events
/
simple_server_stop.rb
blob
22d03bbf5442e911336ed8068e10595b6386a7d2
1
3.times do
2
puts 'waiting'
3
sleep 1
4
end
5
6
command = '/usr/local/bin/ruby ' + File.join(File.dirname(__FILE__), *%w[simple_server.rb]) + ' stop'
7
system(command)