parent
7ae7bb3248
commit
6ad67cefdd
2 changed files with 16 additions and 0 deletions
@ -0,0 +1,11 @@ |
|||||||
|
#!/usr/bin/sh |
||||||
|
|
||||||
|
LAMPP='/opt/lampp/lampp' |
||||||
|
STATUS=$($LAMPP status 2> /dev/null) |
||||||
|
|
||||||
|
APACHE=$(echo "$STATUS" | grep -i apache | grep -io not > /dev/null && echo "down" || echo "up") |
||||||
|
MYSQL=$(echo "$STATUS" | grep -i mysql | grep -io not > /dev/null && echo "down" || echo "up") |
||||||
|
PROFTP=$(echo "$STATUS" | grep -i proftp | grep -io not > /dev/null && echo "down" || echo "up") |
||||||
|
|
||||||
|
|
||||||
|
echo "Apache: $APACHE MySQL: $MYSQL ProFTP: $PROFTP" |
Loading…
Reference in new issue