<div class="gmail_quote">On Tue, Oct 18, 2011 at 10:34 PM, Tom S <span dir="ltr"><<a href="mailto:tsztur@gmail.com">tsztur@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Big problem getting the hobbit-client utility from the default apt-get repo.<br>Why is the home directory of the user 'hobbit' in /var/run/hobbit?<br>Every time the system reboots /var/run gets cleared.   <br>Hobbit starts fine but my .ssh/authorized_keys file gets erased and my ssh-tunnel no longer works!<br>

<br>What is a way around this .. my entire environment of 12 virtual servers now will break XYMON monitoring for them anytime they servers are rebooted.<br><br>How can I fix this without reinstalling?<br></blockquote><div>
<br></div><div>You could move the home directory to somewhere else, say /home/hobbit.  Then on boot, make a symbolic link:      ln -s /home/hobbit /var/run/hobbit</div><div><br></div><div>Alternatively, during boot simply unpack a tarball of whatever you want /var/run/hobbit to contain.  Do the contents change at all?  If so, set up a cron entry to recreate the tarball on a regular basis.</div>
<div><br></div><div>Alternatively, edit /etc/passwd to point hobbit's home elsewhere, then find all the occurrences of /var/run/hobbit in all the files in the hobbit home dir and edit them to match.  You'll need to repeat that exercise if you ever reinstall.</div>
<div><br></div><div>Alternatively, check to see if you can relocate hobbit during installation.  If so, consider if a reinstall might be worth the effort.  I don't know if apt-get can do that.</div><div><br></div><div>
Ralph Mitchell</div></div>