Class: Specinfra::Command::Debian::V8::Service
- Inherits:
-
Base::Service
- Object
- Base
- Base::Service
- Linux::Base::Service
- Base::Service
- Specinfra::Command::Debian::V8::Service
- Extended by:
- Module::Systemd
- Defined in:
- lib/specinfra/command/debian/v8/service.rb
Class Method Summary collapse
- .check_is_enabled_under_systemd(service, level = nil) ⇒ Object (also: check_is_enabled)
Methods included from Module::Service::Delegator
Methods included from Module::Service::Systemd
#check_is_enabled_under_systemd, #check_is_running_under_systemd, #disable_under_systemd, #enable_under_systemd, #reload_under_systemd, #restart_under_systemd, #start_under_systemd, #stop_under_systemd
Methods inherited from Base::Service
create, disable, enable, reload, restart, start, stop
Methods included from Module::Service::God
Methods included from Module::Service::Monit
Methods included from Module::Service::Runit
#check_is_enabled_under_runit, #check_is_running_under_runit, #disable_under_runit, #enable_under_runit, #reload_under_runit, #restart_under_runit, #start_under_runit, #stop_under_runit
Methods included from Module::Service::Upstart
#check_is_running_under_upstart
Methods included from Module::Service::Supervisor
#check_is_running_under_supervisor
Methods included from Module::Service::Daemontools
#check_is_enabled_under_daemontools, #check_is_running_under_daemontools, #disable_under_daemontools, #enable_under_daemontools, #reload_under_daemontools, #restart_under_daemontools, #start_under_daemontools, #stop_under_daemontools
Methods included from Module::Service::Init
#check_is_enabled_under_init, #check_is_running_under_init, #disable_under_init, #enable_under_init, #reload_under_init, #restart_under_init, #start_under_init, #stop_under_init
Methods inherited from Base
Class Method Details
.check_is_enabled_under_systemd(service, level = nil) ⇒ Object Also known as: check_is_enabled
5 6 7 8 9 10 |
# File 'lib/specinfra/command/debian/v8/service.rb', line 5 def check_is_enabled_under_systemd(service, level=nil) [ super(service), "ls /etc/rc[S5].d/S??#{escape(service)} >/dev/null 2>/dev/null" ].join('||') end |