Skip to content

Instantly share code, notes, and snippets.

@tmtk75
Created January 31, 2013 07:18
Show Gist options
  • Save tmtk75/4680972 to your computer and use it in GitHub Desktop.
Save tmtk75/4680972 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
f() {
/etc/init.d/chef-expander $1
/etc/init.d/chef-solr $1
/etc/init.d/chef-server $1
/etc/init.d/chef-server-webui $1
}
if [ "$1" == "start" ]; then
f start
elif [ "$1" == "stop" ]; then
f stop
else
cat<<EOF
Usage: $0 {start|stop}
EOF
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment