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

restart or reload service from puppet command line prompt

$
0
0
I have gotten in the habit, whenever I need to start or stop a service on an individual machine, of doing this: puppet resource service nginx ensure=stopped enable=true This has the nice benefit that I don't need to remember if this service uses `/etc/init.d`, or `chkconfig`, or `service` or `systemctl` But I can only `ensure=stoppped` or `ensure=running`. How can I similarly `restart` or `reload` the service?

Viewing all articles
Browse latest Browse all 6104

Trending Articles



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