Class: Daemon

Inherits:
Object
  • Object
show all
Defined in:
lib/ShrubService.rb

Instance Method Summary collapse

Instance Method Details

#service_initObject



23
24
# File 'lib/ShrubService.rb', line 23

def service_init
end

#service_mainObject



12
13
14
15
16
17
# File 'lib/ShrubService.rb', line 12

def service_main
	sleep 3

	DRb.start_service('druby://0.0.0.0:12000', Shrub::CodeRunner.new(ARGV[0]))
	DRb.thread.join
end

#service_pauseObject



26
27
# File 'lib/ShrubService.rb', line 26

def service_pause
end

#service_resumeObject



29
30
# File 'lib/ShrubService.rb', line 29

def service_resume
end

#service_shutdownObject



32
33
34
# File 'lib/ShrubService.rb', line 32

def service_shutdown
	DRb.stop_service
end

#service_stopObject



19
20
21
# File 'lib/ShrubService.rb', line 19

def service_stop
	DRb.stop_service
end