On 11/9/06, <b class="gmail_sendername">Arjen de Korte</b> &lt;<a href="mailto:nut+users@de-korte.org">nut+users@de-korte.org</a>&gt; 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;">
&gt; radius1:/etc/nut# /lib/nut/genericups -a ups_name<br>&gt; Network UPS Tools - Generic UPS driver 1.30 (2.0.1)<br>&gt; 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 :-)&nbsp; <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>&nbsp;</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>&nbsp;&nbsp;&nbsp;&nbsp;driver = genericups<br>&nbsp;&nbsp;&nbsp;&nbsp;upstype = 7<br>&nbsp;&nbsp;&nbsp;&nbsp;port = /dev/ttyS0<br>&nbsp;&nbsp;&nbsp;&nbsp;desc = &quot;Sweex 1000VA UPS&quot;
</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>&nbsp;&nbsp;&nbsp;&nbsp;ls -l /dev/ttyS0</blockquote><div><br>This gives me:<br><br>&nbsp;radius1:/var/log# ls -l /dev/ttyS0<br>crw-rw----&nbsp; 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>&nbsp;&nbsp;&nbsp;  <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&nbsp;&nbsp;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>