-
Notifications
You must be signed in to change notification settings - Fork 0
/
servicestop.sh
25 lines (25 loc) · 932 Bytes
/
servicestop.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash
#############################################################
## Name : servicestop.sh
## Version : 1.2
## Date : 2022-05-31
## Author : LHammonds
## Compatibility : Verified on Ubuntu Server 22.04 LTS
## Requirements : None
## Purpose : Stop primary services.
## Run Frequency : As needed
## Exit Codes : None
###################### CHANGE LOG ###########################
## DATE VER WHO WHAT WAS CHANGED
## ---------- --- --- ----------------------------
## 2013-01-08 1.0 LTH Created script.
## 2019-09-24 1.1 LTH Switched "service" to "systemctl" format.
## 2022-05-31 1.2 LTH Replaced echo statements with printf.
#############################################################
## NOTE: Configure whatever services you need stopped here.
printf "Stopping services...\n"
#systemctl stop vsftpd
#systemctl stop nagios
#systemctl stop apache2
#systemctl stop mysql
sleep 1