Hi Team,
exec {'start_service':
command => '/opt/agent/bin/service start --accept-license',
onlyif => ".....",
}
The command should get execute only if the service "splunk" is not running.
I would like to put `ps -ef | grep -i "splunk"`
Please help here..!
Regards,
Rohith
↧