#!/bin/sh -euC
PIDOF=$(pidof nl_monitor | cut -d ' ' -f 1)
PSTAT_BINARY=$(echo `pstat $PIDOF | grep PSTAT_BINARY=` | awk -F'"' '{ print $2 }')
ldd $PSTAT_BINARY | grep libnetaid.so.* >/dev/null || exit 1
exec /bin/kill -s SIGTERM $PIDOF
