From 9ac85cf6744546daeaa8fd404091785357239dd1 Mon Sep 17 00:00:00 2001 From: Wes Lambert Date: Mon, 29 Jun 2020 13:09:14 +0000 Subject: [PATCH] Add Stelka mgmt scripts --- salt/common/tools/sbin/so-strelka-restart | 26 +++++++++++++++++++++++ salt/common/tools/sbin/so-strelka-start | 20 +++++++++++++++++ salt/common/tools/sbin/so-strelka-stop | 25 ++++++++++++++++++++++ 3 files changed, 71 insertions(+) create mode 100755 salt/common/tools/sbin/so-strelka-restart create mode 100755 salt/common/tools/sbin/so-strelka-start create mode 100755 salt/common/tools/sbin/so-strelka-stop diff --git a/salt/common/tools/sbin/so-strelka-restart b/salt/common/tools/sbin/so-strelka-restart new file mode 100755 index 000000000..575517807 --- /dev/null +++ b/salt/common/tools/sbin/so-strelka-restart @@ -0,0 +1,26 @@ +#!/bin/bash + +# Copyright 2014,2015,2016,2017,2018,2019,2020 Security Onion Solutions, LLC +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +. /usr/sbin/so-common + +/usr/sbin/so-stop strelka-filestream $1 +/usr/sbin/so-stop strelka-manager $1 +/usr/sbin/so-stop strelka-frontend $1 +/usr/sbin/so-stop strelka-backend $1 +/usr/sbin/so-stop strelka-gatekeeper $1 +/usr/sbin/so-stop strelka-coordinator $1 +/usr/sbin/so-start strelka $1 diff --git a/salt/common/tools/sbin/so-strelka-start b/salt/common/tools/sbin/so-strelka-start new file mode 100755 index 000000000..cecfc0555 --- /dev/null +++ b/salt/common/tools/sbin/so-strelka-start @@ -0,0 +1,20 @@ +#!/bin/bash + +# Copyright 2014,2015,2016,2017,2018,2019,2020 Security Onion Solutions, LLC +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +. /usr/sbin/so-common + +/usr/sbin/so-start strelka $1 diff --git a/salt/common/tools/sbin/so-strelka-stop b/salt/common/tools/sbin/so-strelka-stop new file mode 100755 index 000000000..24bd901d6 --- /dev/null +++ b/salt/common/tools/sbin/so-strelka-stop @@ -0,0 +1,25 @@ +#!/bin/bash + +# Copyright 2014,2015,2016,2017,2018,2019,2020 Security Onion Solutions, LLC +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +. /usr/sbin/so-common + +/usr/sbin/so-stop strelka-filestream $1 +/usr/sbin/so-stop strelka-manager $1 +/usr/sbin/so-stop strelka-frontend $1 +/usr/sbin/so-stop strelka-backend $1 +/usr/sbin/so-stop strelka-gatekeeper $1 +/usr/sbin/so-stop strelka-coordinator $1