Skip to content

Instantly share code, notes, and snippets.

@GeoffWilliams
Last active October 8, 2016 11:12
Show Gist options
  • Select an option

  • Save GeoffWilliams/6615995d9ad6c676483a6cd976b45a06 to your computer and use it in GitHub Desktop.

Select an option

Save GeoffWilliams/6615995d9ad6c676483a6cd976b45a06 to your computer and use it in GitHub Desktop.
#!/bin/bash
#
# Ask systemctl to do something with puppet services
if [ -z "$1" ] ; then
echo "must be run with an argument for systemct"
exit 1
fi
systemctl $1 puppet
systemctl $1 mcollective
systemctl $1 pxp-agent
systemctl $1 pe-activemq
systemctl $1 pe-console-services
systemctl $1 pe-nginx
systemctl $1 pe-orchestration-services
systemctl $1 pe-postgresql
systemctl $1 pe-puppetdb
systemctl $1 pe-puppetserver
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment