generated from ojullien/bash-sys
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.sh
26 lines (24 loc) · 1.12 KB
/
config.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
26
## -----------------------------------------------------------------------------
## Linux Scripts.
## Services manager app configuration file.
##
## @package ojullien\bash\app\manageservices
## @license MIT <https://github.com/ojullien/bash-manageservices/blob/master/LICENSE>
## -----------------------------------------------------------------------------
readonly m_SERVICES_DISABLE="bind9 exim4 postfix smbd nmbd telnet rlogin rexec ftp automount named lpd inetd"
readonly m_SERVICES_STOP="apache2 fail2ban php7.4-fpm mysql"
readonly m_SERVICES_START="mysql php7.4-fpm apache2 fail2ban"
## -----------------------------------------------------------------------------
## Trace
## -----------------------------------------------------------------------------
ManageServices::trace() {
String::separateLine
String::notice "App configuration: ManageServices"
String::notice "\tServices to disable:"
String::notice "\t\t${m_SERVICES_DISABLE}"
String::notice "\tServices to stop:"
String::notice "\t\t${m_SERVICES_STOP}"
String::notice "\tServices to start:"
String::notice "\t\t${m_SERVICES_START}"
return 0
}