Class Chef::Resource::Service
In: lib/chef/resource/service.rb
Parent: Chef::Resource

Methods

Public Class methods

Public Instance methods

if the service is enabled or not

regex for match against ps -ef when !supports[:has_status] && status == nil

Priority arguments can have two forms:

  • a simple number, in which the default start runlevels get that as the start value and stop runlevels get 100 - value.
  • a hash like { 2 => [:start, 20], 3 => [:stop, 55] }, where the service will be marked as started with priority 20 in runlevel 2, stopped in 3 with priority 55 and no symlinks or similar for other runlevels

command to call to restart service

if the service is running or not

command to call to start service

This attribute applies for Windows only.

command to call to get status of service

command to call to stop service

[Validate]