mirror of
https://github.com/inspec/inspec
synced 2024-11-27 15:10:44 +00:00
bugfix: use absolute path for SysV service to work well with sudo on CentOS 5
This commit is contained in:
parent
836697585b
commit
eca6476ced
1 changed files with 1 additions and 2 deletions
|
@ -204,9 +204,8 @@ class SysV < ServiceManager
|
|||
# check if service is really running
|
||||
# service throws an exit code if the service is not installed or
|
||||
# not enabled
|
||||
cmd = @vulcano.command("service #{service_name} status")
|
||||
cmd = @vulcano.command("/sbin/service #{service_name} status")
|
||||
cmd.exit_status == 0 ? (running = true) : (running = false)
|
||||
|
||||
{
|
||||
name: service_name,
|
||||
description: nil,
|
||||
|
|
Loading…
Reference in a new issue