Sha256: d4190e9b6a96bb0e61e5c14b4264cbaec3e4ca5d7644ca54226fe2265cc3166e

Contents?: true

Size: 748 Bytes

Versions: 184

Compression:

Stored size: 748 Bytes

Contents

class Specinfra::Command::Openbsd::V57::Service < Specinfra::Command::Openbsd::Base::Service
  class << self
    def check_is_enabled(service, level=nil)
      "rcctl get #{escape(service)} status"
    end

    def check_is_running(service)
      "rcctl check #{escape(service)}"
    end

    def enable(service)
      "rcctl set #{escape(service)} status on"
    end

    def disable(service)
      "rcctl set #{escape(service)} status off"
    end

    def start(service)
      "rcctl start #{escape(service)}"
    end

    def stop(service)
      "rcctl stop #{escape(service)}"
    end

    def restart(service)
      "rcctl restart #{escape(service)}"
    end

    def reload(service)
      "rcctl reload #{escape(service)}"
    end
  end
end

Version data entries

184 entries across 184 versions & 2 rubygems

Version Path
specinfra-2.82.5 lib/specinfra/command/openbsd/v57/service.rb
specinfra-2.82.4 lib/specinfra/command/openbsd/v57/service.rb
specinfra-2.82.3 lib/specinfra/command/openbsd/v57/service.rb
specinfra-2.82.2 lib/specinfra/command/openbsd/v57/service.rb
specinfra-2.82.1 lib/specinfra/command/openbsd/v57/service.rb
specinfra-2.82.0 lib/specinfra/command/openbsd/v57/service.rb
specinfra-2.81.0 lib/specinfra/command/openbsd/v57/service.rb
specinfra-2.80.0 lib/specinfra/command/openbsd/v57/service.rb
specinfra-2.79.0 lib/specinfra/command/openbsd/v57/service.rb
specinfra-2.78.2 lib/specinfra/command/openbsd/v57/service.rb
specinfra-2.78.1 lib/specinfra/command/openbsd/v57/service.rb
specinfra-2.78.0 lib/specinfra/command/openbsd/v57/service.rb
specinfra-2.77.3 lib/specinfra/command/openbsd/v57/service.rb
specinfra-2.77.2 lib/specinfra/command/openbsd/v57/service.rb
specinfra-2.77.1 lib/specinfra/command/openbsd/v57/service.rb
specinfra-2.77.0 lib/specinfra/command/openbsd/v57/service.rb
specinfra-2.76.9 lib/specinfra/command/openbsd/v57/service.rb
specinfra-2.76.8 lib/specinfra/command/openbsd/v57/service.rb
specinfra-2.76.7 lib/specinfra/command/openbsd/v57/service.rb
specinfra-2.76.6 lib/specinfra/command/openbsd/v57/service.rb