forked from Daorakle/Daorakle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
running.sh
141 lines (140 loc) · 11.1 KB
/
running.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
#!/bin/bash
red="\e[1;31m"
green="\e[0;32m"
NC="\e[0m"
status="$(systemctl show ssh.service --no-page)"
status_text=$(echo "${status}" | grep 'ActiveState=' | cut -f2 -d=)
if [ "${status_text}" == "active" ]
then
echo -e " SSH : SSH Service is "$green"running"$NC""
else
echo -e " SSh : SSH Service is "$red"not running (Error)"$NC""
fi
status="$(systemctl show stunnel4.service --no-page)"
status_text=$(echo "${status}" | grep 'ActiveState=' | cut -f2 -d=)
if [ "${status_text}" == "active" ]
then
echo -e " Stunnel : Stunnel Service is "$green"running"$NC""
else
echo -e " Stunnel : Stunnel Service is "$red"not running (Error)"$NC""
fi
status="$(systemctl show dropbear.service --no-page)"
status_text=$(echo "${status}" | grep 'ActiveState=' | cut -f2 -d=)
if [ "${status_text}" == "active" ]
then
echo -e " DropBear : DropBear Service is "$green"running"$NC""
else
echo -e " DropBear : DropBear Service is "$red"not running (Error)"$NC""
fi
status="$(systemctl show [email protected] --no-page)"
status_text=$(echo "${status}" | grep 'ActiveState=' | cut -f2 -d=)
if [ "${status_text}" == "active" ]
then
echo -e " V2ray Non TLS : V2ray Non TLS Service is "$green"running"$NC""
else
echo -e " V2ray Non TLS : V2ray Non TLS Service is "$red"not running (Error)"$NC""
fi
status="$(systemctl show v2ray.service --no-page)"
status_text=$(echo "${status}" | grep 'ActiveState=' | cut -f2 -d=)
if [ "${status_text}" == "active" ]
then
echo -e " V2ray TLS : V2ray TLS Service is "$green"running"$NC""
else
echo -e " V2ray TLS : V2ray TLS Service is "$red"not running (Error)"$NC""
fi
status="$(systemctl show [email protected] --no-page)"
status_text=$(echo "${status}" | grep 'ActiveState=' | cut -f2 -d=)
if [ "${status_text}" == "active" ]
then
echo -e " Vless TLS : Vless TLS Service is "$green"running"$NC""
else
echo -e " Vless TLS : Vless TLS Service is "$red"not running (Error)"$NC""
fi
status="$(systemctl show [email protected] --no-page)"
status_text=$(echo "${status}" | grep 'ActiveState=' | cut -f2 -d=)
if [ "${status_text}" == "active" ]
then
echo -e " Vless Non TLS : Vless Non TLS Service is "$green"running"$NC""
else
echo -e " Vless Non TLS : Vless Non TLS Service is "$red"not running (Error)"$NC""
fi
status="$(systemctl show trojan --no-page)"
status_text=$(echo "${status}" | grep 'ActiveState=' | cut -f2 -d=)
if [ "${status_text}" == "active" ]
then
echo -e " Trojan : Trojan Service is "$green"running"$NC""
else
echo -e " Trojan : Trojan Service is "$red"not running (Error)"$NC""
fi
status="$(systemctl show squid.service --no-page)"
status_text=$(echo "${status}" | grep 'ActiveState=' | cut -f2 -d=)
if [ "${status_text}" == "active" ]
then
echo -e " Squid : Squid Service is "$green"running"$NC""
else
echo -e " Squid : Squid Service is "$red"not running (Error)"$NC""
fi
status="$(systemctl show openvpn.service --no-page)"
status_text=$(echo "${status}" | grep 'ActiveState=' | cut -f2 -d=)
if [ "${status_text}" == "active" ]
then
echo -e " Openvpn : Openvpn Service is "$green"running"$NC""
else
echo -e " Openvpn : Openvpn Service is "$red"not running (Error)"$NC""
fi
status="$(systemctl show wg-quick@wg0 --no-page)"
status_text=$(echo "${status}" | grep 'ActiveState=' | cut -f2 -d=)
if [ "${status_text}" == "active" ]
then
echo -e " Wireguard : Wireguard Service is "$green"running"$NC""
else
echo -e " Wireguard : Wireguard Service is "$red"not running (Error)"$NC""
fi
status="$(systemctl show accel-ppp.service --no-page)"
status_text=$(echo "${status}" | grep 'ActiveState=' | cut -f2 -d=)
if [ "${status_text}" == "active" ]
then
echo -e " SSTP : SSTP Service is "$green"running"$NC""
else
echo -e " SSTP : SSTP Service is "$red"not running (Error)"$NC""
fi
status="$(systemctl show ssrmu --no-page)"
status_text=$(echo "${status}" | grep 'ActiveState=' | cut -f2 -d=)
if [ "${status_text}" == "active" ]
then
echo -e " SSR : SSR Service is "$green"running"$NC""
else
echo -e " SSR : SSR Service is "$red"not running (Error)"$NC""
fi
status="$(systemctl show shadowsocks-libev.service --no-page)"
status_text=$(echo "${status}" | grep 'ActiveState=' | cut -f2 -d=)
if [ "${status_text}" == "active" ]
then
echo -e " Shadowsocks : Shadowsocks Service is "$green"running"$NC""
else
echo -e " Shadowsocks : Sadhowsocks Service is "$red"not running (Error)"$NC""
fi
status="$(systemctl show xl2tpd.service --no-page)"
status_text=$(echo "${status}" | grep 'ActiveState=' | cut -f2 -d=)
if [ "${status_text}" == "active" ]
then
echo -e " L2tp : L2tp Service is "$green"running"$NC""
else
echo -e " L2tp : L2tp Service is "$red"not running (Error)"$NC""
fi
status="$(systemctl show pptpd.service --no-page)"
status_text=$(echo "${status}" | grep 'ActiveState=' | cut -f2 -d=)
if [ "${status_text}" == "active" ]
then
echo -e " PPTP : PPTP Service is "$green"running"$NC""
else
echo -e " PPTP : PPTP Service is "$red"not running (Error)"$NC""
fi
status="$(systemctl show nginx.service --no-page)"
status_text=$(echo "${status}" | grep 'ActiveState=' | cut -f2 -d=)
if [ "${status_text}" == "active" ]
then
echo -e " Nginx : Nginx Service is "$green"running"$NC""
else
echo -e " Nginx : Nginx Service is "$red"not running (Error)"$NC""
fi