Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:dpsim
nginx
nginx.check-reload.sh
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File nginx.check-reload.sh of Package nginx
#!/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
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor