Issue
Imunify360 administrators receive email notifications from cron:
/etc/cron.daily/logrotate:
pidof: invalid option -- 'q'
Usage:
pidof [options] [program [...]]
Options:
-s, --single-shot return one PID only
-c, --check-root omit processes with different root
-x also find shells running the named scripts
-w, --with-workers show kernel workers too
-o, --omit-pid <PID,...> omit processes with PID
-S, --separator SEP use SEP as separator put between PIDs
-h, --help display this help and exit
-V, --version output version information and exit
For more details see pidof(1).
Environment
- Imunify360
Solution
Modify the file `/etc/logrotate.d/imunify360-wafd` adding the following lines between `postrotate` and `endscript` strings:
[root@server] ~ # tail -n6 /etc/logrotate.d/imunify360-wafd
postrotate
wafd_pid=$(pidof /usr/sbin/wafd_imunify_daemon)
if [ -n "$wafd_pid" ];then
kill -USR2 $wafd_pid || :
fi
endscript
}
Cause
Bug ID is DEF-29652.
Comments
0 comments
Please sign in to leave a comment.