Created
May 22, 2017 02:46
-
-
Save taka3110/77728b2d28e94b3c0c04a9f370ea71e7 to your computer and use it in GitHub Desktop.
sensuのrestartコマンド
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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