new improved template scheme

This commit is contained in:
Serghey Rodin 2013-05-10 11:04:40 +03:00
commit fd4e68bb8c
96 changed files with 1395 additions and 1425 deletions

41
bin/v-restart-proxy Executable file
View file

@ -0,0 +1,41 @@
#!/bin/bash
# info: restart proxy server
# options: NONE
#
# The function reloads proxy server configuration.
#----------------------------------------------------------#
# Variable&Function #
#----------------------------------------------------------#
# Includes
source $VESTA/conf/vesta.conf
source $VESTA/func/main.sh
#----------------------------------------------------------#
# Action #
#----------------------------------------------------------#
if [ ! -z "$PROXY_SYSTEM" ]; then
/etc/init.d/$PROXY_SYSTEM status >/dev/null 2>&1
if [ $? -eq 0 ]; then
/etc/init.d/$PROXY_SYSTEM reload >/dev/null 2>&1
if [ $? -ne 0 ]; then
exit $E_RESTART
fi
else
/etc/init.d/$PROXY_SYSTEM start >/dev/null 2>&1
if [ $? -ne 0 ]; then
exit $E_RESTART
fi
fi
fi
#----------------------------------------------------------#
# Vesta #
#----------------------------------------------------------#
exit