Browse Source

ee site log

bugfixes
harshadyeola 10 years ago
parent
commit
981735f42d
  1. 5
      bin/easyengine
  2. 19
      src/modules/stack/ee_cache_clean.sh

5
bin/easyengine

@ -275,6 +275,7 @@ elif [ "$EE_FIRST" = "stack" ] || [ "$EE_FIRST" = "system" ]; then
ee_lib_echo_escape "\trestart\tRestart NGINX, PHP5, MySQL and Postfix service"
fi
# EasyEngine site
elif [ "$EE_FIRST" = "site" ]; then
if [ "$EE_SECOND" = "list" ]; then
@ -542,6 +543,10 @@ elif [ "$EE_FIRST" = "site" ]; then
# Execute: service nginx reload
ee_lib_service nginx reload
fi
elif [ "$EE_SECOND" = "log" ]; then
# tail -f log
ee_site_check_logs ${@:3}|| ee_lib_error "Unable to check logs, exit status = " $?
else
ee_lib_echo "ee site commands:"
ee_lib_echo_escape "\tlist\tList NGINX enabled website"

19
src/modules/stack/ee_cache_clean.sh

@ -1,11 +1,16 @@
#Clean all cache
# Clean all cache
function ee_cache_clean()
{
#Clean fastcgi cache
rm -rf $(grep fastcgi_cache_path /etc/nginx/conf.d/fastcgi.conf | awk '{ print $2 }' | sed 's/$/\/*/g') \
|| ee_lib_error "Unable to clean fastcgi cache, exit status = " $?
# Clean fastcgi cache
if [ -d /var/run/nginx-cache/ ]; then
rm -rf /var/run/nginx-cache/* &>> $EE_COMMAND_LOG
fi
#Clean memcache
service memcached restart &>> $EE_COMMAND_LOG || ee_lib_error "Unable to clean memcache, exit status = " $?
}
# Clean memcache
dpkg --get-selections | grep -v deinstall | grep memcached &>> $EE_COMMAND_LOG
if [ $? -eq 0 ];then
service memcached restart &>> $EE_COMMAND_LOG
fi
}

Loading…
Cancel
Save