#!/usr/local/bin/bash
#
if [ "$(/usr/local/bin/pidof flow-capture)" ]
then
# process was found
echo 1 >/dev/null
else
# process not found
echo 2 >/dev/null
/usr/local/etc/rc.d/flow_capture start
fi
#
if [ "$(/usr/local/bin/pidof flow-capture)" ]
then
# process was found
echo 1 >/dev/null
else
# process not found
echo 2 >/dev/null
/usr/local/etc/rc.d/flow_capture start
fi