--- /usr/portage/sys-block/tgt/files/tgtd-1.0.24.initd 2012-03-14 10:07:11.000000000 +0000 +++ /usr/portage/sys-block/tgt/files/tgtd-1.0.24.initd 2014-07-20 22:40:01.530002472 +0000 @@ -116,9 +116,8 @@ } status() { - # Don't name this script "tgtd"... - TGTD_PROC=$(ps -C tgtd | grep -c tgtd) - if [ "$TGTD_PROC" -eq 2 ] ; then + TGTD_PROC=$(pidof -c -o $$ -o %PPID tgtd) + if [ -n "$TGTD_PROC" ] ; then echo "tgtd is running. Run 'tgt-admin -s' to see detailed target info." else echo "tgtd is NOT running."