Sha256: 339177e7cd94a776e74dbfac05afd0f871365d8399dff68d967cdfbf94d0a22c
Contents?: true
Size: 376 Bytes
Versions: 104
Compression:
Stored size: 376 Bytes
Contents
class Specinfra::Command::Smartos::Base::Service < Specinfra::Command::Solaris::Base::Service class << self def check_is_enabled(service, level=nil) "svcs -l #{escape(service)} 2> /dev/null | grep -wx '^enabled.*true$'" end def check_is_running(service) "svcs -l #{escape(service)} status 2> /dev/null |grep -wx '^state.*online$'" end end end
Version data entries
104 entries across 104 versions & 1 rubygems