Class | AutomateIt::ServiceManager::UpdateRCD |
In: |
lib/automateit/service_manager/update_rcd.rb
|
Parent: | AutomateIt::ServiceManager::SYSV |
The UpdateRCD driver implements the ServiceManager methods for enabled?, enable and disable on Debian-like platforms. It uses the SYSV driver for handling the methods running?, start and stop.
TOOL | = | "update-rc.d" |
See ServiceManager#disable
# File lib/automateit/service_manager/update_rcd.rb, line 23 def disable(service, opts={}) _raise_unless_available return false unless enabled?(service) interpreter.sh("#{TOOL} -f #{service} remove < /dev/null > /dev/null") end
See ServiceManager#enable
# File lib/automateit/service_manager/update_rcd.rb, line 16 def enable(service, opts={}) _raise_unless_available return false if enabled?(service) interpreter.sh("#{TOOL} #{service} defaults < /dev/null > /dev/null") end