Class: Specinfra::Command::Openbsd::V57::Service
Class Method Summary
collapse
create
#check_is_monitored_by_god
#check_is_monitored_by_monit
#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
#check_is_running_under_upstart
#check_is_running_under_supervisor
#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
#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
#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
#def_delegator_service_under
Methods inherited from Base
create, escape
Class Method Details
.check_is_enabled(service, level = nil) ⇒ Object
3
4
5
|
# File 'lib/specinfra/command/openbsd/v57/service.rb', line 3
def check_is_enabled(service, level=nil)
"rcctl get #{escape(service)} status"
end
|
.check_is_running(service) ⇒ Object
7
8
9
|
# File 'lib/specinfra/command/openbsd/v57/service.rb', line 7
def check_is_running(service)
"rcctl check #{escape(service)}"
end
|
.disable(service) ⇒ Object
15
16
17
|
# File 'lib/specinfra/command/openbsd/v57/service.rb', line 15
def disable(service)
"rcctl set #{escape(service)} status off"
end
|
.enable(service) ⇒ Object
11
12
13
|
# File 'lib/specinfra/command/openbsd/v57/service.rb', line 11
def enable(service)
"rcctl set #{escape(service)} status on"
end
|
.reload(service) ⇒ Object
31
32
33
|
# File 'lib/specinfra/command/openbsd/v57/service.rb', line 31
def reload(service)
"rcctl reload #{escape(service)}"
end
|
.restart(service) ⇒ Object
27
28
29
|
# File 'lib/specinfra/command/openbsd/v57/service.rb', line 27
def restart(service)
"rcctl restart #{escape(service)}"
end
|
.start(service) ⇒ Object
19
20
21
|
# File 'lib/specinfra/command/openbsd/v57/service.rb', line 19
def start(service)
"rcctl start #{escape(service)}"
end
|
.stop(service) ⇒ Object
23
24
25
|
# File 'lib/specinfra/command/openbsd/v57/service.rb', line 23
def stop(service)
"rcctl stop #{escape(service)}"
end
|