update scripts
This commit is contained in:
1 parent
95e2551110
commit
4a8ea1b190
17 files changed
+381
-126
No files matched your search
@@ -35,13 +35,19 @@ rc() {
|
||||
#--- restart function ---
|
||||
restart() {
|
||||
$0 stop
|
||||
sleep 1
|
||||
$0 start
|
||||
}
|
||||
|
||||
reload() {
|
||||
restart
|
||||
}
|
||||
#------------------------
|
||||
|
||||
#--- help function ---
|
||||
help() {
|
||||
echo "$0 init script usage: $0 {start|stop|restart|reload}"
|
||||
echo "$0 init script usage: $0 {start|stop|restart|reload|help}"
|
||||
exit 1
|
||||
}
|
||||
#---------------------
|
||||
|
||||
@@ -54,3 +60,9 @@ check() {
|
||||
printf "$BBLUE**$BGREEN SUCCESS: $2\n$RESET"
|
||||
}
|
||||
#-----------------------------------------------
|
||||
|
||||
#--- notify func ---
|
||||
notify() {
|
||||
printf "$BBLUE**$BYELLOW $1\n$RESET"
|
||||
}
|
||||
#-------------------
|
||||
Reference in new issue
Block a user