Date: Sat, 19 Jan 2002 03:19:18 +0900 From: "Akinori MUSHA" <knu@iDaemons.org> To: "Dan Langille" <dan@langille.org> Cc: ports@freebsd.org Subject: Re: sysutils/portupgrade startup scripts needs start/stop options Message-ID: <867kqfttcp.wl@archon.local.idaemons.org> In-Reply-To: <200201181423.g0IENOD57163@lists.unixathome.org> References: <200201181423.g0IENOD57163@lists.unixathome.org>
next in thread | previous in thread | raw e-mail | index | archive | help
At Fri, 18 Jan 2002 09:23:22 -0500, Dan Langille wrote: > sysutils/portupgrade installs /usr/local/etc/rc.d/000.pkgtools.sh by > default. This script should have a start/stop option to avoid warnings > during shutdown etc. Ah, you mean the warning which only existed between 4.1-STABLE and 4.2-STABLE. Okay, what about this? Index: etc/pkgtools.sh =================================================================== RCS file: /home/cvs/pkgtools/etc/pkgtools.sh,v retrieving revision 1.3 diff -u -r1.3 pkgtools.sh --- etc/pkgtools.sh 2 Nov 2001 10:38:04 -0000 1.3 +++ etc/pkgtools.sh 18 Jan 2002 18:18:19 -0000 @@ -2,6 +2,12 @@ # # $Idaemons: /home/cvs/pkgtools/etc/pkgtools.sh,v 1.3 2001/11/02 10:38:04 knu Exp $ -if [ -d /usr/local/lib/compat/pkg ]; then - /sbin/ldconfig -m /usr/local/lib/compat/pkg -fi +case "$1" in +start|restart) + if [ -d /usr/local/lib/compat/pkg ]; then + /sbin/ldconfig -m /usr/local/lib/compat/pkg + fi + ;; +stop) + ;; +esac Thanks, -- / /__ __ Akinori.org / MUSHA.org / ) ) ) ) / FreeBSD.org / Ruby-lang.org Akinori MUSHA aka / (_ / ( (__( @ iDaemons.org / and.or.jp "Somewhere out of a memory.. of lighted streets on quiet nights.." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?867kqfttcp.wl>