⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.162
Server IP:
147.93.29.146
Server:
Linux server.tagooz.co 5.14.0-503.15.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Nov 28 07:25:19 EST 2024 x86_64
Server Software:
Apache
PHP Version:
8.2.29
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
libexec
/
initscripts
/
legacy-actions
/
nginx
/
View File Name :
check-reload
#!/usr/bin/sh # # Legacy action script to visually check if nginx fails to reload # Source function library. [ -f /etc/rc.d/init.d/functions ] && . /etc/rc.d/init.d/functions prog=nginx pidfile=`/usr/bin/systemctl show -p PIDFile nginx.service | sed 's/^PIDFile=//' | tr ' ' '\n'` CHECKSLEEP=3 templog=`/bin/mktemp --tmpdir nginx-check-reload-XXXXXX.log` trap '/bin/rm -f $templog' 0 /usr/bin/tail --pid=$$ -n 0 --follow=name /var/log/nginx/error.log > $templog & /bin/sleep 1 /bin/echo -n $"Sending reload signal to $prog: " killproc -p ${pidfile} ${prog} -HUP /bin/echo /bin/sleep $CHECKSLEEP /bin/grep -E "\[emerg\]|\[alert\]" $templog exit 0