You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
424 B
12 lines
424 B
7 years ago
|
#!/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"
|