Enterprise-Onion-Toolkit/templates.d/status.sh.txt

12 wiersze
170 B
Bash

#!/bin/sh
# eotk (c) 2017 Alec Muffett
cd %PROJECT_DIR% || exit 1
pidfiles=`find . -name "*.pid"`
if [ "x$pidfiles" != "x" ] ; then
ps -p `cat $pidfiles`
fi
exit 0