[Nut-upsuser] Cannot move /bin/upsdrvctl to /sbin

Rob MacGregor rob.macgregor at gmail.com
Tue Mar 13 20:28:39 CET 2007


On 3/13/07, marc2 at rechte.fr <marc2 at rechte.fr> wrote:
>
>
> Hi,
>
> In Red Hat /etc/init.d/halt script, it expects upsdrvctl to be in /sbin rather
> than /bin which sounds normal considering the power of that command.
>
> If I move this file to sbin, this is what I get when invoking it:
>
> [root at serveur1.sassine.eu nut-2.0.5]# mv /bin/upsdrvctl /sbin/
> [root at serveur1.sassine.eu nut-2.0.5]# which upsdrvctl
> /sbin/upsdrvctl
> [root at serveur1.sassine.eu nut-2.0.5]# upsdrvctl
> -bash: /bin/upsdrvctl: Aucun fichier ou répertoire de ce type

What if you kick off a fresh shell?  I'm wondering if somehow it's
caching the location of the binary (as csh does).  I've never seen
bash do that before, but there's always a first time :)

-- 
                 Please keep list traffic on the list.

Rob MacGregor
      Whoever fights monsters should see to it that in the process he
        doesn't become a monster.                  Friedrich Nietzsche


More information about the Nut-upsuser mailing list