Lines 116-124
Link Here
|
116 |
} |
116 |
} |
117 |
|
117 |
|
118 |
status() { |
118 |
status() { |
119 |
# Don't name this script "tgtd"... |
119 |
TGTD_PROC=$(pidof -c -o $$ -o %PPID tgtd) |
120 |
TGTD_PROC=$(ps -C tgtd | grep -c tgtd) |
120 |
if [ -n "$TGTD_PROC" ] ; then |
121 |
if [ "$TGTD_PROC" -eq 2 ] ; then |
|
|
122 |
echo "tgtd is running. Run 'tgt-admin -s' to see detailed target info." |
121 |
echo "tgtd is running. Run 'tgt-admin -s' to see detailed target info." |
123 |
else |
122 |
else |
124 |
echo "tgtd is NOT running." |
123 |
echo "tgtd is NOT running." |