Merge "Add healthcheck script for memcached"
This commit is contained in:
commit
21eb3f6aeb
5
healthcheck/memcached
Normal file
5
healthcheck/memcached
Normal file
@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
listen_addr=$(awk 'match($0, /-l +([0-9a-fA-F\.\:]+) /, a) {print a[1]}' /etc/sysconfig/memcached)
|
||||
echo "stats" | socat - TCP:$listen_addr:11211
|
||||
exit
|
Loading…
Reference in New Issue
Block a user