From a63b6729bf8e2062e94ebe539986c08ef3625bfb Mon Sep 17 00:00:00 2001 From: Shivam Sandbhor Date: Wed, 23 Dec 2020 14:17:49 +0530 Subject: [PATCH] Enable detection of `httpd` (#512) * Enable detection of `httpd` on centos Signed-off-by: Shivam Sandbhor --- wizard.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/wizard.sh b/wizard.sh index 1b09889c9..ba2e98a14 100755 --- a/wizard.sh +++ b/wizard.sh @@ -48,6 +48,7 @@ DEBUG_MODE="false" FORCE_MODE="false" SUPPORTED_SERVICES='apache2 +httpd nginx sshd mysql @@ -96,6 +97,12 @@ detect_services () { for SRC in "${SYSTEMD_SERVICES}" "${PSAX}" ; do echo ${SRC} | grep ${SVC} >/dev/null if [ $? -eq 0 ]; then + + #on centos, apache2 is named httpd + if [[ ${SVC} == "httpd" ]] ; then + SVC="apache2"; + fi + DETECTED_SERVICES+=(${SVC}) HMENU+=(${SVC} "on") log_info "Found '${SVC}' running" @@ -134,7 +141,7 @@ log_input_tags[smb]='type: smb' log_input_tags[linux]="type: syslog" declare -A log_locations -log_locations[apache2]='/var/log/apache2/*.log,/var/log/*httpd*.log' +log_locations[apache2]='/var/log/apache2/*.log,/var/log/*httpd*.log,/var/log/httpd/*log' log_locations[nginx]='/var/log/nginx/*.log' log_locations[sshd]='/var/log/auth.log,/var/log/sshd.log,/var/log/secure' log_locations[rsyslog]='/var/log/syslog'