Sha256: 4c4b42fc8556f4f679ec29a4d0dc20b7b8dfe0f9262e3c8aaac4c802ab77d4bd

Contents?: true

Size: 313 Bytes

Versions: 9

Compression:

Stored size: 313 Bytes

Contents

class Specinfra::Command::Debian::Base::Service < Specinfra::Command::Linux::Base::Service
  def check_is_enabled(service, level=3)
    # Until everything uses Upstart, this needs an OR.
    "ls /etc/rc#{level}.d/ | grep -- '^S..#{escape(service)}' || grep 'start on' /etc/init/#{escape(service)}.conf"
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
specinfra-2.0.0.beta15 lib/specinfra/command/debian/base/service.rb
specinfra-2.0.0.beta14 lib/specinfra/command/debian/base/service.rb
specinfra-2.0.0.beta13 lib/specinfra/command/debian/base/service.rb
specinfra-2.0.0.beta12 lib/specinfra/command/debian/base/service.rb
specinfra-2.0.0.beta11 lib/specinfra/command/debian/base/service.rb
specinfra-2.0.0.beta10 lib/specinfra/command/debian/base/service.rb
specinfra-2.0.0.beta9 lib/specinfra/command/debian/base/service.rb
specinfra-2.0.0.beta8 lib/specinfra/command/debian/base/service.rb
specinfra-2.0.0.beta7 lib/specinfra/command/debian/base/service.rb