Changes to blocks config
This commit is contained in:
parent
734ca37b07
commit
5a6c4005b6
2 changed files with 16 additions and 0 deletions
11
i3/blocks/server
Executable file
11
i3/blocks/server
Executable file
|
@ -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…
Add table
Add a link
Reference in a new issue