Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 May 2006 15:36:28 +0400
From:      "Andrew Pantyukhin" <infofarmer@gmail.com>
To:        "Larry Rosenman" <ler@lerctr.org>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: USE_RC_SUBR question
Message-ID:  <cb5206420605160436r79ad804t6dfa78c3876bcb1e@mail.gmail.com>
In-Reply-To: <00f701c67859$baa38960$aa0610ac@aus.pervasive.com>
References:  <00f701c67859$baa38960$aa0610ac@aus.pervasive.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 5/15/06, Larry Rosenman <ler@lerctr.org> wrote:
> I just converted one of my ports to the new USE_RC_SUBR=3D convention, an=
d
> realized
> after it was committed that I screwed up, and installed my own version of
> the rc.d/ script
> as well as the one USE_RC_SUBR installed.
>
> In trying to fix it, I have a couple of questions:
> 1) is there an (automated?) way to get which version (exilog or exilog.sh=
)
>    so I can stop the process on uninstall?

You can use an asterisk (but be careful) or something like
if [ -x %D/etc/rc.d/script ] ; then %D/etc/rc.d/script forcestop ; fi
if [ -x %D/etc/rc.d/script.sh ] ; then %D/etc/rc.d/script.sh forcestop ; fi



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?cb5206420605160436r79ad804t6dfa78c3876bcb1e>