Hi, I am running Tinc on debian squeeze, when I reboot, the tincd daemon is not running at all, despite having the right link in rc2.d: root at box /etc/rc2.d [9]# ls S03tinc* S03tinc When I do /etc/init.d/tinc start, it works fine. Any idea what is the problem? 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."
Graeme Tattersall
2011-Sep-15 23:09 UTC
Problem with init script of tinc in debian squeeze
On 15/09/2011 22:50, Benjamin Henrion wrote:> I am running Tinc on debian squeeze, when I reboot, the tincd daemon > is not running at all, despite having the right link in rc2.d: > > root at box /etc/rc2.d [9]# ls S03tinc* > S03tinc > > When I do /etc/init.d/tinc start, it works fine.Afaik this is related to Debian having changed the way it starts it's init-script services from Squeeze onwards. see: http://wiki.debian.org/LSBInitScripts/DependencyBasedBoot You need to make the tinc init script into a LSB compliant script. Particularly, you need to add this kind of text at the top of the init file. --- BEGIN CUT --- #! /bin/sh # ### BEGIN INIT INFO # Provides: tinc # Required-Start: $remote_fs $network # Required-Stop: $remote_fs $network # Should-Start: $syslog $named # Should-Stop: $syslog # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Start tinc daemons # Description: Create a file $NETSFILE (/etc/tinc/nets.boot), # and put all the names of the networks in there. # These names must be valid directory names under # $TCONF (/etc/tinc). Lines starting with a # will be # ignored in this file. ### END INIT INFO --- END CUT --- When this has been inserted into the /etc/init.d/tinc file, you can then put tinc into the boot-sequence using insserv (which replaces update-rc.d) host# insserv tinc Hope this helps Graeme
Seemingly Similar Threads
- tinc 1.1pre. How to automatically start vpn tunnels? How to change the installation/config path to the same as tinc 1.0.x version from ubuntu repository?
- Watchdog for Tinc daemon
- Rsyslog and "Error while reading from Linux ethertap device /dev/net/tun: File descriptor in bad state"
- Multi-audio in OGV?
- Tinc VPN workshop at Hacker Space Brussels this saturday