2005-08-22 04:34:40 +00:00
|
|
|
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
|
2005-09-21 04:48:37 +00:00
|
|
|
|
2005-09-29 20:18:24 +00:00
|
|
|
require 'rex/services/local_relay'
|
|
|
|
|
2005-09-21 04:48:37 +00:00
|
|
|
#
|
|
|
|
# Calls stop on the service once the ref count drops.
|
|
|
|
#
|
|
|
|
def cleanup
|
|
|
|
stop
|
|
|
|
end
|
2005-09-29 20:18:24 +00:00
|
|
|
|
|
|
|
attr_accessor :alias
|
|
|
|
|
2005-08-22 04:34:40 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
end
|