renamed internal functions

This commit is contained in:
Serghey Rodin 2011-11-01 13:02:44 +02:00
commit d1e25a06f5
134 changed files with 260 additions and 263 deletions

View file

@ -1,24 +0,0 @@
#!/bin/bash
# Internal vesta function
# cron system restart
# Importing variables
source $VESTA/conf/vars.conf
crond() {
/etc/init.d/crond 'reload' >/dev/null 2>&1
if [ $? -ne 0 ]; then
#$V_FUNC/report_issue 'sys' 'cron'
echo "$E_RESTART_FAILED $V_EVENT"
fi
}
# Parsing config / or just source config
cron_system=$(grep 'CRON_SYSTEM=' $V_CONF/vesta.conf | cut -f 2 -d \' )
if [ "$cron_system" = 'crond' ]; then
crond
fi
# Logging
exit $OK

View file

@ -1,23 +0,0 @@
#!/bin/bash
# Internal vesta function
# dns system restart
# Importing variables
source $VESTA/conf/vars.conf
bind() {
/etc/init.d/named 'reload' >/dev/null 2>&1
if [ $? -ne 0 ]; then
#$V_FUNC/report_issue 'sys' 'cron'
echo "$E_RESTART_FAILED $V_EVENT"
fi
}
# Parsing config / or just source config
dns_system=$(grep 'DNS_SYSTEM=' $V_CONF/vesta.conf | cut -f 2 -d \' )
if [ "$dns_system" = 'bind' ]; then
bind
fi
exit $OK

View file

@ -1,39 +0,0 @@
#!/bin/bash
# Internal vesta function
# web system restart
# Importing variables
source $VESTA/conf/vars.conf
# Restart functions
apache() {
/etc/init.d/httpd 'graceful' >/dev/null 2>&1
if [ $? -ne 0 ]; then
#$V_FUNC/report_issue 'web' 'apache'
echo "$E_RESTART_FAILED $V_EVENT"
fi
}
nginx() {
/etc/init.d/nginx 'reload' >/dev/null 2>&1
if [ $? -ne 0 ]; then
#$V_FUNC/report_issue 'web' 'nginx'
echo "$E_RESTART_FAILED $V_EVENT"
fi
}
# Parsing config
web_system=$(grep 'WEB_SYSTEM=' $V_CONF/vesta.conf | cut -f 2 -d \' )
proxy_system=$(grep 'PROXY_SYSTEM=' $V_CONF/vesta.conf | cut -f 2 -d \' )
# Checking values
if [ "$web_system" = 'apache' ]; then
apache
fi
if [ "$proxy_system" = 'nginx' ]; then
nginx
fi
# Logging
exit $OK