Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 482830
Collapse All | Expand All

(-)/usr/portage/sys-block/tgt/files/tgtd-1.0.24.initd (-3 / +2 lines)
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."

Return to bug 482830