mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-14 10:37:39 -07:00
check if dns-sync is already running
This commit is contained in:
parent
502749a2b9
commit
19cdf5f103
11 changed files with 22 additions and 56 deletions
|
@ -26,12 +26,7 @@ source $VESTA/conf/vesta.conf
|
|||
check_args '2' "$#" 'USER DOMAIN'
|
||||
is_format_valid 'user' 'domain'
|
||||
is_system_enabled "$DNS_CLUSTER" 'DNS_CLUSTER'
|
||||
if [ ! -e "$VESTA/conf/dns-cluster.conf" ]; then
|
||||
check_result $E_NOTEXIST "dns-cluster.conf doesn't exist"
|
||||
fi
|
||||
if [ "$(ps auxf |grep -v grep |grep $BIN/$SCRIPT |wc -l)" -gt 2 ]; then
|
||||
check_result $E_EXISTS "another sync process already running"
|
||||
fi
|
||||
is_procces_running
|
||||
remote_dns_health_check
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue