Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 1 Apr 2001 04:56:07 +0200
From:      "undergra" <undergra@vallesnet.org>
To:        <freebsd-questions@freebsd.org>
Subject:   snmp startup fail
Message-ID:  <048301c0ba57$4e0efca0$0164a8c0@daemon>

next in thread | raw e-mail | index | archive | help
Hi.. i installed snmp port. But fails the startup

# ./snmpd.sh
./snmpd.sh: Cannot determine the PREFIX

snmpd.sh file:

--------------------
#!/bin/sh

if ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/$(basename $0)\$"); then
    echo "$0: Cannot determine the PREFIX" >&2
    exit 1
fi

case "$1" in
start)
        [ -x ${PREFIX}/sbin/snmpd ] && ${PREFIX}/sbin/snmpd && echo -n '
snmpd'
        ;;
stop)
        killall snmpd && echo -n ' snmpd'
        ;;
*)
        echo "Usage: `basename $0` {start|stop}" >&2
        ;;
esac

exit 0
--------------------------

anyone help me please???

thank you very much


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?048301c0ba57$4e0efca0$0164a8c0>