HEX
Server: Apache
System: Linux nc-ph-0707-26.instaforreviews.com 3.10.0-1160.119.1.el7.tuxcare.els13.x86_64 #1 SMP Fri Nov 22 06:29:45 UTC 2024 x86_64
User: qirgxuo4hkuv (1004)
PHP: 8.3.27
Disabled: NONE
Upload Files
File: //proc/16903/cwd/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