<br><div class="gmail_quote">2012/11/28 <span dir="ltr"><<a href="mailto:VaclavKrpec@eaton.com" target="_blank">VaclavKrpec@eaton.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello everybody,<br></blockquote><div> <br>Hi Vasek,<br><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I've just noticed that POWERDOWNFLAG defaults to<br>
/etc/killpower in upsmon.conf.<br>
<br>
I believe that such files belong to the /run sub-tree.<br>
Not only because it's not a config. file; mainly because<br>
many embedded systems actually have most of the FS<br>
read-only and have only the /tmp, /var and /run<br>
writable...<br>
<br>
Is there any particular reason to keep the file in /etc?<br></blockquote><div> </div></div>on /run: not all the world is Linux (sadly) ;)<br clear="all">on /tmp, /var and the like: by the time this killpower flag file is useful, at the very end of the system shutdown process, these dirs may have been wiped out. Refer to <a href="http://www.networkupstools.org/docs/user-manual.chunked/ar01s06.html#Shutdown_design">http://www.networkupstools.org/docs/user-manual.chunked/ar01s06.html#Shutdown_design</a><br>
<br>so, /etc, or {sysconfdir} to be right (I've just fixed it in commit r3793), is still the best default.<br>note that r3793 was another long standing commit underway...<br>that said, everyone is free to set this to whatever values that better fits particular needs.<br>
<br>managing from legacy Unix and Windows to the bleeding edge Linux implies some compromise...<br><br>cheers,<br>Arnaud<br>-- <br>Engineering Linux/Unix Expert - Opensource Solutions Lead - Eaton - <a href="http://opensource.eaton.com" target="_blank">http://opensource.eaton.com</a><br>
NUT (Network UPS Tools) Project Leader - <a href="http://www.networkupstools.org" target="_blank">http://www.networkupstools.org</a><br>Debian Developer - <a href="http://www.debian.org" target="_blank">http://www.debian.org</a><br>
Free Software Developer - <a href="http://arnaud.quette.fr" target="_blank">http://arnaud.quette.fr</a><br><br>