#!/bin/sh ARGS="$@" ARG1="$1" LSWS_HOME=/usr/local/lsws APACHE_BIN=/usr/sbin/httpd CTRL_APACHE=0 APACHE=/usr/sbin/httpd_ls_bak LSWS=$LSWS_HOME/bin/lswsctrl PARAM_LOG=$LSWS_HOME/logs/ap_cmd_param.log APACHE_STATE=$LSWS_HOME/admin/cgid/apache_state ulimit -v unlimited 2>/dev/null if [ ! -f $LSWS ]; then mv $APACHE $APACHE_BIN $APACHE_BIN "$@" exit $? fi echo "`date`: $@" 2>/dev/null >> $PARAM_LOG if [ "x$ARG1" = 'x-DSSL' ] || [ "x$ARG1" = 'x-DFOREGROUND' ]; then shift ARG1=$1 fi if [ "x$ARG1" = 'x' ]; then service lsws restart if [ "x$CTRL_APACHE" = "x1" ]; then $APACHE "$@" fi elif [ "x$ARG1" = 'x-k' ]; then ARG2=$2 case $ARG2 in start|startssl|sslstart|start-SSL) echo "START" > $APACHE_STATE service lsws restart ERR=$? if [ "x$CTRL_APACHE" = "x1" ]; then $APACHE "$@" fi exit $ERR ;; stop|graceful-stop) # never stop LSWS here, use "service lsws stop" instead # have to stop lsws or make cPanel belive apache is stopped, # otherwise cpanel will send signal "9" $LSWS stophttpd if [ "x$CTRL_APACHE" == "x1" ]; then $APACHE "$@" else echo "" fi ;; restart|graceful) echo "START" > $APACHE_STATE service lsws restart if [ "x$CTRL_APACHE" = "x1" ]; then $APACHE "$@" fi ;; *) $APACHE "$@" esac else if [ "x$ARG1" = "xuninstall" ]; then if [ "x$CTRL_APACHE" = "x0" ]; then service lsws stop sleep 1 fi mv $APACHE $APACHE_BIN $APACHE_BIN elif [ "x$ARG1" = "xinstall" ]; then if [ "x$CTRL_APACHE" = "x0" ]; then pkill `basename $APACHE_BIN` fi echo "START" > $APACHE_STATE service lsws start else $APACHE "$@" fi fi ERROR=$? exit $ERROR
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
admpass.sh | File | 1.17 KB | 0555 |
|
ap_lsws.sh | File | 1.82 KB | 0755 |
|
ap_lsws.sh.in | File | 1.82 KB | 0555 |
|
awstats_install.sh | File | 2.06 KB | 0555 |
|
build_ap_wrapper.sh | File | 624 B | 0555 |
|
chroot.sh | File | 7.31 KB | 0555 |
|
cleancache.sh | File | 1.46 KB | 0555 |
|
cleanlitemage.sh | File | 2.4 KB | 0555 |
|
cp_switch_ws.sh | File | 22.41 KB | 0555 |
|
cpanel_restart_httpd.in | File | 732 B | 0555 |
|
create_admin_keypair.sh | File | 336 B | 0555 |
|
enable_ruby_python_selector.sh | File | 2.68 KB | 0555 |
|
fix_cagefs.sh | File | 766 B | 0555 |
|
fp_install.sh | File | 1.65 KB | 0555 |
|
gdb-bt | File | 25 B | 0644 |
|
genjCryptionKeyPair.php | File | 6.43 KB | 0644 |
|
gzipStatic.sh | File | 272 B | 0555 |
|
htpasswd.php | File | 103 B | 0644 |
|
lscmctl | File | 15.3 KB | 0775 |
|
lshttpd.service | File | 660 B | 0555 |
|
lsup.sh | File | 5.65 KB | 0555 |
|
lsup6.sh | File | 5.65 KB | 0555 |
|
lsws.rc | File | 1.78 KB | 0555 |
|
lsws.rc.gentoo | File | 441 B | 0555 |
|
mgr_ver.sh | File | 1.93 KB | 0555 |
|
php.ini | File | 37.11 KB | 0644 |
|
purge_cache_by_url | File | 3.23 KB | 0555 |
|
rc-inst.sh | File | 5.99 KB | 0555 |
|
rc-uninst.sh | File | 4.61 KB | 0555 |
|
uninstall.sh | File | 2.9 KB | 0555 |
|
update.sh | File | 1.85 KB | 0555 |
|