#!/bin/sh #%# family=auto #%# capabilities=autoconf case "$1" in autoconf|detect) if [ -z "${pid_file}" ]; then echo "no (PID file isn't specified by env.pid_file)" exit 1 elif [ -f "${pid_file}" ]; then echo "yes" exit 0 else echo "no (PID file doesn't exist: ${pid_file})" exit 1 fi ;; config) if [ -z "${label}" ]; then title="groonga: memory usage" else title="groonga: ${label}: memory usage" fi cat <