forked from NeySlim/xtreamui_mirror
-
Notifications
You must be signed in to change notification settings - Fork 2
/
balancer.sh
32 lines (32 loc) · 885 Bytes
/
balancer.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/bash
# news system balancer coded in bash for multiple system compatibility
# help to code for me just prepare
# bash script get parameter used
# $1 json file full path to file
# $2 main server db username
# $3 main server db password
# $4 main server db port
# $5 main server db name
# json parameter available
# status (not require not used)
# port (ssh port for login to balancer)
# host (ip of balancer for ssh connexion)
# password (ssh password of balancer for ssh connexion)
# time (not require not used)
# id (id to your load balancer on batabase)
# type (type paramater to used)
#type available
# for install news balancer
# install
#for restart service on balancer
# restart
# for full system reboot balancer
# reboot
# for fast reload balancer
# breload
# full reload balancer
# fbremake
# upgrade geolite balancer
# ugeolite
# upgrade youtube-dl balancer
# uyoutube