SO Scripts - start|stop|restart

This commit is contained in:
Josh Brower
2020-01-02 15:58:15 -05:00
parent 5358220121
commit 3d436037e2
19 changed files with 338 additions and 20 deletions

View File

@@ -20,7 +20,7 @@
. /usr/sbin/so-common
echo $banner
printf "Restarting $1\n"
printf "Restarting $1...\n\nThis could take a while if another Salt job is running. \nRun this command with --force to stop all Salt jobs before proceeding.\n"
echo $banner
if [ "$2" = "--force" ]
@@ -31,5 +31,5 @@ fi
case $1 in
"cortex") docker stop so-thehive-cortex so-thehive && docker rm so-thehive-cortex so-thehive && salt-call state.apply hive queue=True;;
*) docker stop so-$1 && docker rm so-$1 && salt-call state.apply $1 queue=True;;
*) docker stop so-$1 ; docker rm so-$1 ; salt-call state.apply $1 queue=True;;
esac