path: tgt_1:1.0.85-1.3/scripts/tgt-setup-lun # Check if tgtd is running (we should have 2 daemons) tgtd_count=`pidof tgtd | wc -w` if [ $tgtd_count -lt 1 ]; then echo "tgtd is not running" path: tgt_1:1.0.85-1.3/debian/tests/daemon DAEMON=tgtd if pidof -x $DAEMON > /dev/null; then echo "OK" else path: tgt_1:1.0.85-1.3/debian/tgt.postinst # pidfile for the initscript to continue working. if [ ! -f /run/tgtd.pid ] && pidof /usr/sbin/tgtd >/dev/null; then pidof -s /usr/sbin/tgtd >/run/tgt.pid fi path: tgt_1:1.0.85-1.3/debian/tgt.postinst # We may have been unable to stop tgtd during prerm, so at least create the # pidfile for the initscript to continue working. if [ ! -f /run/tgtd.pid ] && pidof /usr/sbin/tgtd >/dev/null; then pidof -s /usr/sbin/tgtd >/run/tgt.pid fi