MOON
Server: Apache
System: Linux server1.oystertel.com 3.10.0-1127.19.1.el7.x86_64 #1 SMP Tue Aug 25 17:23:54 UTC 2020 x86_64
User: buchabicpanel (1008)
PHP: 7.4.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //usr/sbin/imunify-auditd-log-reader-cfg-reload
#!/usr/bin/env bash

# This script copies is responsible for install auditd-log-reader configuration file
# received from imunify360 agent.
# It is assumed that imunify360 agent will trigger this script each time new configuration file is deployed.

SRC=/var/imunify360/files/auditd-log-reader/v1/config.yaml
DEST=/etc/imunify360/auditd-log-reader/config.yaml

mkdir -p dir $(dirname $DEST)
cp -f $SRC $DEST

PID=$(cat /var/run/imunify-auditd-log-reader.pid)
if [ -z "${PID//[0-9]}" ]; then
  kill -HUP $PID
fi