Hi, Just for your information I had the tinc daemon dying on the main machine I use as a hub, so I looked for a script to restart the daemon it if dies. Here is tinc.sh: =========================================================#!/bin/bash # Tinc Process Monitor # Restart Tinc daemon When It Goes Down # Source: http://bash.cyberciti.biz/web-server/restart-apache2-httpd-shell-script/ RESTART="/etc/init.d/tinc restart" PGREP="/usr/bin/pgrep" TINCD="tincd" $PGREP ${TINCD} || $RESTART ========================================================= Put an entry into /etc/crontab every minute: =========================================================*/1 * * * * root /root/watchdog/tinc.sh >/dev/null 2>&1 ========================================================= It works fine here. Best, -- Benjamin Henrion <bhenrion at ffii.org> FFII Brussels - +32-484-566109 - +32-2-4148403 "In July 2005, after several failed attempts to legalise software patents in Europe, the patent establishment changed its strategy. Instead of explicitly seeking to sanction the patentability of software, they are now seeking to create a central European patent court, which would establish and enforce patentability rules in their favor, without any possibility of correction by competing courts or democratically elected legislators."
On Wed, Nov 3, 2010 at 11:53, Benjamin Henrion <bh a udev.org> wrote:> Hi, > > Just for your information I had the tinc daemon dying on the main > machine I use as a hub, so I looked for a script to restart the daemon > it if dies.You can use daemontools or any other auto-restarting daemon, launching tincd with -D option
On Wed, Nov 03, 2010 at 11:53:00AM +0100, Benjamin Henrion wrote:> Just for your information I had the tinc daemon dying on the main > machine I use as a hub, so I looked for a script to restart the daemon > it if dies.If tinc dies, then please send any logs it produced before the crash or fatal error, and if possible run "ulimit -c unlimited" and then "tincd -n <netname> -d5 -D", so that tinc logs everything and will dump a core when it crashes. The latter can be used to investigate what caused the crash. -- Met vriendelijke groet / with kind regards, Guus Sliepen <guus at tinc-vpn.org> -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 198 bytes Desc: Digital signature URL: <http://www.tinc-vpn.org/pipermail/tinc/attachments/20101104/af5aea45/attachment.pgp>
Apparently Analagous Threads
- Rsyslog and "Error while reading from Linux ethertap device /dev/net/tun: File descriptor in bad state"
- Problem with init script of tinc in debian squeeze
- Multi-audio in OGV?
- Tinc VPN workshop at Hacker Space Brussels this saturday
- Automatic configuration of direct routes behind NAT