bugfix: use absolute path for SysV service to work well with sudo on CentOS 5

This commit is contained in:
Christoph Hartmann 2015-10-22 14:07:29 +02:00
parent 836697585b
commit eca6476ced

View file

@ -204,9 +204,8 @@ class SysV < ServiceManager
# check if service is really running # check if service is really running
# service throws an exit code if the service is not installed or # service throws an exit code if the service is not installed or
# not enabled # 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) cmd.exit_status == 0 ? (running = true) : (running = false)
{ {
name: service_name, name: service_name,
description: nil, description: nil,