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@serveur1.sassine.eu nut-2.0.5]# mv /bin/upsdrvctl /sbin/ [root@serveur1.sassine.eu nut-2.0.5]# which upsdrvctl /sbin/upsdrvctl [root@serveur1.sassine.eu nut-2.0.5]# upsdrvctl -bash: /bin/upsdrvctl: Aucun fichier ou r?pertoire de ce type Many thanks. Marc Recht?
2007/3/13, marc2@rechte.fr <marc2@rechte.fr>:> > > 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@serveur1.sassine.eu nut-2.0.5]# mv /bin/upsdrvctl /sbin/ > [root@serveur1.sassine.eu nut-2.0.5]# which upsdrvctl > /sbin/upsdrvctl > [root@serveur1.sassine.eu nut-2.0.5]# upsdrvctl > -bash: /bin/upsdrvctl: Aucun fichier ou r?pertoire de ce typeI don't know why it failed (it should work!) but you might prefer to symlink one to the other. Arnaud -- Linux / Unix Expert - MGE UPS SYSTEMS - R&D Dpt Network UPS Tools (NUT) Project Leader - http://www.networkupstools.org/ Debian Developer - http://people.debian.org/~aquette/ OpenSource Developer - http://arnaud.quette.free.fr/
On 3/13/07, marc2@rechte.fr <marc2@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@serveur1.sassine.eu nut-2.0.5]# mv /bin/upsdrvctl /sbin/ > [root@serveur1.sassine.eu nut-2.0.5]# which upsdrvctl > /sbin/upsdrvctl > [root@serveur1.sassine.eu nut-2.0.5]# upsdrvctl > -bash: /bin/upsdrvctl: Aucun fichier ou r?pertoire de ce typeWhat 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
Seemingly Similar Threads
- upsmon keeps broadcasting on battery / on power (driver is newhidups)
- upsmon keeps broadcasting on battery / on power (driver is newhidups)
- DAHDI or Zaptel doesn't compile against 1.4.24
- Is newhidups driver still in memory just before o/s halt ?
- Trouble running 'alsamixer' as normal user on headless box with minimal system