mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 10:37:42 -07:00
restart cron job
This commit is contained in:
parent
10f7097c48
commit
6365fe984d
5 changed files with 156 additions and 1 deletions
49
bin/v-list-remote-dsn-hosts
Executable file
49
bin/v-list-remote-dsn-hosts
Executable file
|
@ -0,0 +1,49 @@
|
|||
#!/bin/bash
|
||||
# info: list remote dns host
|
||||
# options: [FORMAT]
|
||||
#
|
||||
# The function for obtaining the list of remote dns host.
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
# Variable&Function #
|
||||
#----------------------------------------------------------#
|
||||
|
||||
# Argument defenition
|
||||
format=${1-shell}
|
||||
|
||||
# Includes
|
||||
source $VESTA/func/main.sh
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
# Verifications #
|
||||
#----------------------------------------------------------#
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
# Action #
|
||||
#----------------------------------------------------------#
|
||||
|
||||
# Check config
|
||||
conf=$VESTA/conf/dns-cluster.conf
|
||||
if [ ! -e "$conf" ]; then
|
||||
exit
|
||||
fi
|
||||
|
||||
# Defining fileds to select
|
||||
fields='$HOST $USER $DNS_USER $TYPE $TIME $DATE'
|
||||
|
||||
case $format in
|
||||
json) json_list ;;
|
||||
plain) nohead=1; shell_list ;;
|
||||
shell) shell_list| column -t ;;
|
||||
*) check_args '1' '0' 'USER [FORMAT]';;
|
||||
esac
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
# Vesta #
|
||||
#----------------------------------------------------------#
|
||||
|
||||
exit
|
Loading…
Add table
Add a link
Reference in a new issue