File: gvm-stop

package info (click to toggle)
gvm 25.04.0
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 108 kB
  • sloc: sh: 625; makefile: 2
file content (21 lines) | stat: -rwxr-xr-x 456 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash

## Colour for bash prompt
RED="\033[01;31m"
GREEN="\033[01;32m"
RESET="\033[00m"

## Check if running as root
if [[ ${EUID} -ne 0 ]]; then
  echo -e "${RED}[-]${RESET} Error: $0 must be run as root" 1>&2
  exit 1
fi

## Banner
echo -e "${GREEN}[>]${RESET} Stopping GVM services"

## Stop services
systemctl stop gsad gvmd ospd-openvas notus-scanner

## Check services status
systemctl --no-pager -l status gsad gvmd ospd-openvas notus-scanner