removed status trigger

This commit is contained in:
Serghey Rodin 2013-05-31 11:08:25 +03:00
commit 5981afc795
6 changed files with 18 additions and 48 deletions

View file

@ -19,14 +19,9 @@ source $VESTA/func/main.sh
#----------------------------------------------------------#
if [ ! -z "$WEB_SYSTEM" ]; then
/etc/init.d/$WEB_SYSTEM status >/dev/null 2>&1
if [ $? -eq 0 ]; then
/etc/init.d/$WEB_SYSTEM reload >/dev/null 2>&1
if [ $? -ne 0 ]; then
exit $E_RESTART
fi
else
/etc/init.d/$WEB_SYSTEM start >/dev/null 2>&1
/etc/init.d/$WEB_SYSTEM reload >/dev/null 2>&1
if [ $? -ne 0 ]; then
/etc/init.d/$WEB_SYSTEM restart >/dev/null 2>&1
if [ $? -ne 0 ]; then
exit $E_RESTART
fi