svc.sh: add color tags
This commit is contained in:
parent
b20a391df4
commit
db79c1552f
25
svc.sh
25
svc.sh
@ -16,6 +16,19 @@
|
|||||||
## WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
|
## WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
|
||||||
## ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
## ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
##############################################################################################
|
##############################################################################################
|
||||||
|
RED='\033[0;31m'
|
||||||
|
LRED="\033[1;31m"
|
||||||
|
BLUE="\033[0;34m"
|
||||||
|
LBLUE="\033[1;34m"
|
||||||
|
GREEN="\033[0;32m"
|
||||||
|
LGREEN="\033[1;32m"
|
||||||
|
YELLOW="\033[1;33m"
|
||||||
|
CYAN="\033[0;36m"
|
||||||
|
LCYAN="\033[1;36m"
|
||||||
|
PURPLE="\033[0;35m"
|
||||||
|
LPURPLE="\033[1;35m"
|
||||||
|
BWHITE="\e[1m"
|
||||||
|
NC='\033[0m' # No Color
|
||||||
|
|
||||||
case $1 in
|
case $1 in
|
||||||
|
|
||||||
@ -34,12 +47,10 @@ case $1 in
|
|||||||
list | ls | --list )
|
list | ls | --list )
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo -e "\e[92m Contents of /etc/sv/\e[0m"
|
echo -e "${LGREEN}Contents of /etc/sv/${NC}\n"
|
||||||
#echo "Contents of /etc/sv/"
|
|
||||||
echo
|
|
||||||
ls /etc/sv
|
ls /etc/sv
|
||||||
echo
|
echo
|
||||||
echo -e "\e[96m Contents of /var/service/\e[0m"
|
echo -e "${LCYAN}Contents of /var/service${NC}\n"
|
||||||
echo
|
echo
|
||||||
ls /var/service
|
ls /var/service
|
||||||
echo
|
echo
|
||||||
@ -50,15 +61,15 @@ case $1 in
|
|||||||
;;
|
;;
|
||||||
|
|
||||||
start )
|
start )
|
||||||
sv start $2
|
sv start "${2}"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
restart )
|
restart )
|
||||||
sv restart $2
|
sv restart "${2}"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
stop )
|
stop )
|
||||||
sv stop $2
|
sv stop "${2}"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
--help | -h | help )
|
--help | -h | help )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user