mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-20 21:34:11 -07:00
replaced underscore with dash in api syscalls
This commit is contained in:
parent
7ed705cee7
commit
b6b7eacadb
283 changed files with 438 additions and 412 deletions
37
bin/v-restart-dns
Executable file
37
bin/v-restart-dns
Executable file
|
@ -0,0 +1,37 @@
|
|||
#!/bin/bash
|
||||
# info: restart dns service
|
||||
# options: none
|
||||
#
|
||||
# The function tells BIND service to reload dns zone files.
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
# Variable&Function #
|
||||
#----------------------------------------------------------#
|
||||
|
||||
# Includes
|
||||
source $VESTA/conf/vesta.conf
|
||||
source $VESTA/func/main.sh
|
||||
EVENT=${1-$EVENT}
|
||||
|
||||
#----------------------------------------------------------#
|
||||
# Action #
|
||||
#----------------------------------------------------------#
|
||||
|
||||
if [ "$DNS_SYSTEM" = 'bind' ]; then
|
||||
/etc/init.d/named reload &>/dev/null
|
||||
if [ $? -ne 0 ]; then
|
||||
/etc/init.d/named restart &>/dev/null
|
||||
if [ $? -ne 0 ]; then
|
||||
log_event "$E_RESTART" "$EVENT"
|
||||
exit $E_RESTART
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
# Vesta #
|
||||
#----------------------------------------------------------#
|
||||
|
||||
exit
|
Loading…
Add table
Add a link
Reference in a new issue