Date: Fri, 19 Jul 2002 12:58:42 +0200 From: "Per olof Ljungmark" <peo@intersonic.se> To: freebsd-questions <freebsd-questions@FreeBSD.ORG> Subject: Need help with apcupsd startup script Message-ID: <3D37F0E2.3080902@intersonic.se>
next in thread | raw e-mail | index | archive | help
Hi all, I am using apcupsd installed from ports with no mods. apcupsd itself runs fine but the script /usr/local/etc/rc.d/apcupsd.sh returns: apcupsd.sh: Cannot determine the PREFIX when I try it. I assume there are some Linux specific paths in there? First lines of the script goes: if ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/$(basename $0)\$"); then echo "$0: Cannot determine the PREFIX" >&2 exit 1 fi # If there is a global system configuration file, suck it in. if [ -r /etc/defaults/rc.conf ]; then . /etc/defaults/rc.conf source_rc_confs elif [ -r /etc/rc.conf ]; then . /etc/rc.conf fi apcupsd_enable=${apcupsd_enable:-YES} apcupsd_program=${apcupsd_program:-${PREFIX}/sbin/apcupsd} apcupsd_flags=${apcupsd_flags:-"--kill-on-powerfail"} apcupsd_pidfile=${apcupsd_pidfile:-/var/run/apcupsd.pid} apcupsd_lockfile=${apcupsd_pidfile:-/var/spool/lock/apcupsd.lock} thanks, /per olof 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?3D37F0E2.3080902>