You are not logged in.
Hi i need help.
I'm trying to config network-ups-tools for a mustek ups and i have to start /usr/bin/upsdrvctl at boot. I edit
rc.local:
#!/bin/bash
#
# /etc/rc.local: Local multi-user startup script.
#
/usr/bin/upsdrvctl start
read -t30 -n1
But i get this error:
Network UPS Tools - UPS driver controller 2.2.2
Network UPS Tools 2.2.2 - Megatec protocol driver 1.5.14 [megatec]
Carlos Rodrigues (c) 2003-2008
Unable to open /dev/ttyS0: Permission denied
Current user id: nut (55)
Serial port owner: root (0)
Serial port group: uucp (14)
Mode of port: 0660
Things to try:
- Use another port (with the right permissions)
- Fix the port owner/group or permissions on this port
- Run this driver as another user (upsdrvctl -u or 'user=...' in ups.conf).
See upsdrvctl(8) and ups.conf(5).
Fatal error: unusable configuration
Driver failed to start (exit status=1)
I already have done this:
bash-3.2# chmod 0770 /dev/ttyS0
bash-3.2# chown root:nut /dev/ttyS0
bash-3.2#
But on boot i get that error again.
Someone can point me the right direction.
Thanks
Last edited by amadlopes (2009-01-20 19:44:03)
Offline
A wild guess... may be add user nut to uucp group...
Offline
I don't have a better idea so i'll try it.
thanks
A wild guess... may be add user nut to uucp group...
Offline
Now i have an other problem:
this is the message at boot.
/dev/ttyS0 is locked by another process
If i start upsdrvctl on a terminal evrything works but i don't want to start this a boot everytime i reboot.
I'm going to try investigate more. I folow the documentation from home page of the project but it's not working.
If i find more i'll post.
thanks
Last edited by amadlopes (2009-01-20 18:24:03)
Offline
man lsof
Offline
It gives me that error but it's working.
thanks
Offline