On 11/9/06, <b class="gmail_sendername">Arjen de Korte</b> <<a href="mailto:nut+users@de-korte.org">nut+users@de-korte.org</a>> wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
> radius1:/etc/nut# /lib/nut/genericups -a ups_name<br>> Network UPS Tools - Generic UPS driver 1.30 (2.0.1)<br>> No upstype set - see help text / man page!<br><br>The last line should ring a bell, don't you think so?
</blockquote><div><br>Yes so I've tried man nut :-) <br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>Honestly, you didn't read the genericups man page, did you? You can't
<br>specify an upstype like this (the correct way is explained in the man<br>page).</blockquote><div><br>See above...ok now I did.<br></div><div><br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
In short, each configuration parameter in this file should be on a<br>separate line, like the following:<br><br>[ups_name]<br> driver = genericups<br> upstype = 7<br> port = /dev/ttyS0<br> desc = "Sweex 1000VA UPS"
</blockquote><div><br>Ok, I tried this.<br>The driver was loaded and..... the server shutdown immediately.<br>I had to attach a screen and a keyboard to the server and boot it in single user mode<br>to disable nut in /etc/default/
<br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Also make sure that NUT is able to access the serial port, so you may want<br>
to check permissions:<br><br> ls -l /dev/ttyS0</blockquote><div><br>This gives me:<br><br> radius1:/var/log# ls -l /dev/ttyS0<br>crw-rw---- 1 root dialout 4, 64 2005-02-26 07:39 /dev/ttyS0<br><br>So, I guess not good. What is the correct chown?
<br>chown root:nut /dev/ttyS0 ? <br><br>Could this be the reason of the instant shutdown? <br>I don't want this to happen again. (radius)<br> <br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Kind regards,<br>Arjen<br><br>PS Please keep the mailinglist posted. Others may benefit from problems<br>(and solutions) you have with configuring NUT to get your UPS working.</blockquote><div><br>Of course.<br>Many tnx<br>
<br>Yves<br></div></div>