Server IP : 92.204.138.22 / Your IP : 52.14.220.213 Web Server : Apache System : Linux ns1009439.ip-92-204-138.us 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64 User : internationaljou ( 1019) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/libexec/initscripts/legacy-actions/nginx/ |
Upload File : |
#!/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