Lines Matching +full:local +full:- +full:pid
3 # Copyright (c) 2001-2003
34 SNMPD=/usr/local/bin/bsnmpd
35 PID=/var/run/snmpd.pid
41 if [ -r ${PID} ] ; then
42 if kill -0 `cat ${PID}` ; then
43 echo "snmpd already running -- pid `cat ${PID}`" >/dev/stderr
46 rm -f ${PID}
48 if ${SNMPD} -c ${CONF} -p ${PID} ; then
54 if [ -r ${PID} ] ; then
55 if kill -0 `cat ${PID}` ; then
56 if kill -15 `cat ${PID}` ; then
63 echo "stale pid file -- removing" >/dev/stderr
64 rm -f ${PID}
71 if [ ! -r ${PID} ] ; then
73 elif kill -0 `cat ${PID}` ; then
74 echo "snmpd pid `cat ${PID}`"
76 echo "stale pid file -- pid `cat ${PID}`"