Sindbad~EG File Manager
| Current Path : /opt/nginxhttpd_/bin/ |
|
|
| Current File : //opt/nginxhttpd_/bin/restart_openresty |
#!/usr/bin/env bash
###
## Restart Openresty
###
if test -e /usr/bin/systemctl ; then
/usr/bin/systemctl status o2redis && bash /opt/nginxhttpd/bin/restart_o2redis
/usr/bin/systemctl restart openresty
else
/etc/init.d/o2redis status && bash /opt/nginxhttpd/bin/restart_o2redis
/etc/init.d/openresty restart
fi
ps -ef |grep nginx
# Recreate the OpenResty conf in memory
# Edit : already done in the redis service
# /opt/nginxhttpd/bin/console openresty:generate
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists