| Server IP : 198.38.94.13 / Your IP : 216.73.217.33 Web Server : Apache System : Linux d4744.dxb1.stableserver.net 5.14.0-611.49.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Apr 21 16:39:08 EDT 2026 x86_64 User : revivere ( 1140) PHP Version : 8.2.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/local/lsws/admin/misc/ |
Upload File : |
#!/bin/sh
LS_PID=""
LS_CONF=%LSWS_HOME%/conf/httpd_config.xml
if [ "x$1" == "x--restart" ] || [ "x$1" == "x" ]; then
if [ -f '/tmp/lshttpd/lshttpd.pid' ]; then
LSPID=`cat /tmp/lshttpd/lshttpd.pid`
kill -0 $LSPID
if [ $? -eq 0 ]; then
touch /var/run/restartsrv_httpd.lock
service lsws restart
unlink /var/run/restartsrv_httpd.lock
fi
fi
PORT_OFFSET_CONF=`grep apachePortOffset "$LS_CONF"`
PORT_OFFSET=`expr "$PORT_OFFSET_CONF" : '.*<apachePortOffset>\(.*\)</apachePortOffset>'`
if [ "x$PORT_OFFSET" != 'x' ] && [ "$PORT_OFFSET" -ne 0 ]; then
/scripts/restartsrv_httpd_ls_bak $@
fi
else
/scripts/restartsrv_httpd_ls_bak $@
fi