mirror of
https://github.com/myvesta/vesta
synced 2025-08-21 05:44:08 -07:00
renamed internal functions
This commit is contained in:
parent
2000d8f73b
commit
d1e25a06f5
134 changed files with 260 additions and 263 deletions
|
@ -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
|
|
@ -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
|
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue