Greetings;
I have attempted to add the nut startup strings into my /etc/rc.local file,
but with the new nono-serialized boot used by many distros today, I cannot
see the startup and its error messages if any because the xserver is
already started and that hide the messages. All I know is that it will not
even show the driver in an htop report once booted.
So, taking another tack, I have pulled the /etc/init.d/upsd script in from
an older mandriva install that self-destructed, modified the paths in it to
suit the installation in the /usr/local/ups tree.
Parts of this appear to work.
[root at coyote init.d]# ./upsd restart
NUT Stopping UPS daemon: /bin/bash: upsd: command not found
[FAILED]
NUT Stopping UPS model drivers /etc/rc.d/init.d/functions: line 621:
/upsdrvctl: No such file or directory
[FAILED]
NUT Starting UPS model drivers: Network UPS Tools - UPS driver controller
2.4.3-2672
Network UPS Tools - Generic HID driver 0.35 (2.4.3-2672)
USB communication driver 0.31
Using subdriver: Belkin HID 0.12
[
OK ]
NUT Starting UPS daemon: Network UPS Tools upsd 2.4.3-2672
ACL in upsd.conf is no longer supported - switch to LISTEN
ACL in upsd.conf is no longer supported - switch to LISTEN
ACL in upsd.conf is no longer supported - switch to LISTEN
ACCEPT in upsd.conf is no longer supported - switch to LISTEN
ACCEPT in upsd.conf is no longer supported - switch to LISTEN
REJECT in upsd.conf is no longer supported - switch to LISTEN
listening on 127.0.0.1 port 3493
listening on ::1 port 3493
/var/state/ups is world readable
Can't open /usr/local/ups/etc/ups.conf: Can't open
/usr/local/ups/etc/ups.conf: Permission denied
[FAILED]
[root at coyote init.d]#
That was root attempting to do that.
That file is currently, and I believe pursuant to the install instructions:
[root at coyote init.d]# ls -l /usr/local/ups/etc/ups.conf
-rw-r----- 1 root nut 95 2010-11-06 12:54 /usr/local/ups/etc/ups.conf
What do I do to the perms etc so that this file is readable, both now, and
during the bootup when I enable a link to it from /etc/rc5.d?
Thanks.
--
Cheers, Gene
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Q: Why did the WASP cross the road?
A: To get to the middle.