Quantcast
Channel: Ask Puppet: Puppet DevOps Q&A Community - RSS feed
Viewing all articles
Browse latest Browse all 6104

Execute a command onlyif service is not running.

$
0
0
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

Viewing all articles
Browse latest Browse all 6104

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>