3 # System startup script for tinc
4 # $Id: init.d,v 1.14.2.4 2000/12/05 09:03:41 zarq Exp $
6 # Based on Lubomir Bulej's Redhat init script.
8 # Create a file $NETSFILE (/etc/tinc/nets.boot), and put all the names of
9 # the networks in there. These names must be valid directory names under
10 # $TCONF (/etc/tinc). Lines starting with a # will be ignored in this
14 DAEMON="/usr/sbin/tincd"
19 NETSFILE="$TCONF/nets.boot"
22 test -f $DAEMON || exit 0
25 if [ ! -f $NETSFILE ] ; then
26 echo "Please create $NETSFILE."
29 NETS="`egrep '^[ ]*[a-zA-Z0-9_]+[ ]*$' $NETSFILE`"
35 echo -n "Starting $DESC:"
44 echo -n "Stopping $DESC:"
47 $DAEMON -n $n $EXTRA -k
53 echo -n "Restarting $DESC:"
56 $DAEMON -n $n $EXTRA -k
63 echo "Usage: /etc/init.d/$NAME {start|stop|restart|force-reload}"