Module: CommandWrap::OpenOffice::Server
- Defined in:
- lib/command_wrap/open_office/server.rb
Class Method Summary collapse
Class Method Details
.restart ⇒ Object
21 22 23 24 25 |
# File 'lib/command_wrap/open_office/server.rb', line 21 def self.restart stop sleep 5 start end |
.start ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'lib/command_wrap/open_office/server.rb', line 5 def self.start pid1 = fork do exec CommandWrap::Config::OpenOffice.xvfb end sleep 5 # 5 seconden wachten tot xvfb draait pid2 = fork do exec CommandWrap::Config::OpenOffice.command end end |
.stop ⇒ Object
15 16 17 18 19 |
# File 'lib/command_wrap/open_office/server.rb', line 15 def self.stop `#{CommandWrap::Config::OpenOffice.stop_xvfb}` sleep 5 `#{CommandWrap::Config::OpenOffice.stop}` end |