Skip to content

Instantly share code, notes, and snippets.

@taka3110
Created May 22, 2017 02:46
Show Gist options
  • Save taka3110/77728b2d28e94b3c0c04a9f370ea71e7 to your computer and use it in GitHub Desktop.
Save taka3110/77728b2d28e94b3c0c04a9f370ea71e7 to your computer and use it in GitHub Desktop.
sensuのrestartコマンド
#!/bin/sh
case $1 in
"api" ) /etc/init.d/sensu-api restart ;;
"server" ) /etc/init.d/sensu-server restart ;;
"client" ) /etc/init.d/sensu-client restart ;;
"all" ) service sensu-server restart ; service sensu-api restart ; service sensu-client restart ;;
esac
exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment