30 lines
444 B
Ruby
30 lines
444 B
Ruby
require 'rex'
|
|
|
|
require 'rex'
|
|
require 'rex/proto'
|
|
|
|
module Rex
|
|
|
|
###
|
|
#
|
|
# Service
|
|
# -------
|
|
#
|
|
# The service module is used to extend classes that are passed into the
|
|
# service manager start routine. It provides extra methods, such as reference
|
|
# counting, that are used to track the service instances more uniformly.
|
|
#
|
|
###
|
|
module Service
|
|
include Ref
|
|
|
|
#
|
|
# Calls stop on the service once the ref count drops.
|
|
#
|
|
def cleanup
|
|
stop
|
|
end
|
|
end
|
|
|
|
end
|