From owner-freebsd-questions Sun Apr 1 19:54:26 2001 Delivered-To: freebsd-questions@freebsd.org Received: from vallesnet.org (vallesnet.org [194.224.210.5]) by hub.freebsd.org (Postfix) with ESMTP id DA4F337B718 for ; Sun, 1 Apr 2001 19:54:22 -0700 (PDT) (envelope-from undergra@vallesnet.org) Received: from daemon (80-BARC-X69.libre.retevision.es [62.82.33.80]) by vallesnet.org (8.10.2/8.10.2) with SMTP id f322sJo13583 for ; Mon, 2 Apr 2001 04:54:20 +0200 Message-ID: <048301c0ba57$4e0efca0$0164a8c0@daemon> From: "undergra" To: Subject: snmp startup fail Date: Sun, 1 Apr 2001 04:56:07 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.72.3110.5 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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