<div dir="ltr"><div>This is what we use on our routers, running once a minute via crontab.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">if pgrep "tincd" >/dev/null; then <br> echo "tincd is running"<br>else<br> echo "tincd isn't running, restarting"<br> tincd -n nycmesh<br>fi</blockquote></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jan 29, 2016 at 9:07 AM, pjv <span dir="ltr"><<a href="mailto:pjv@pjv.me" target="_blank">pjv@pjv.me</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I have tinc 1.1pre11 running on various routers and linux cloud servers. On one of the cloud servers, under Ubuntu 12.04, tinc is mysteriously dying once in a while, leaving a dangling PID. I have been unable to track down why it is dying, but it happens infrequently enough that I care less about why it is dying than how to robustly respawn it when it dies.<br>
<br>
Before I re-invent the wheel, has anyone come up with a solution for automatically detecting a dead tincd and respawning the process on linux?<br>
<br>_______________________________________________<br>
tinc mailing list<br>
<a href="mailto:tinc@tinc-vpn.org">tinc@tinc-vpn.org</a><br>
<a href="http://www.tinc-vpn.org/cgi-bin/mailman/listinfo/tinc" rel="noreferrer" target="_blank">http://www.tinc-vpn.org/cgi-bin/mailman/listinfo/tinc</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>---</div>GPG Key: <a href="https://pgp.mit.edu/pks/lookup?op=get&search=0x160B24D1C08FB4E4" target="_blank">0x160B24D1C08FB4E4</a></div></div></div></div></div></div>
</div>