aboutsummaryrefslogtreecommitdiff
path: root/net/misc/tinc/rc.tinc.new
diff options
context:
space:
mode:
Diffstat (limited to 'net/misc/tinc/rc.tinc.new')
-rw-r--r--net/misc/tinc/rc.tinc.new29
1 files changed, 15 insertions, 14 deletions
diff --git a/net/misc/tinc/rc.tinc.new b/net/misc/tinc/rc.tinc.new
index 2b8a24b..9dc5104 100644
--- a/net/misc/tinc/rc.tinc.new
+++ b/net/misc/tinc/rc.tinc.new
@@ -1,4 +1,5 @@
#!/bin/sh
+# thanks to gentoo initscript
tinc_networks() {
@@ -11,31 +12,31 @@ tinc_networks() {
}
tinc_start() {
- echo "Starting tinc VPN networks"
+ echo "Starting tinc VPN networks"
for TINCNET in `tinc_networks`; do
echo "Starting tinc network $TINCNET"
/usr/sbin/tincd --net="$TINCNET" --logfile=/var/log/tinc.$TINCNET.log --pidfile=/var/run/tinc.$TINCNET.pid
- done
+ done
}
tinc_stop() {
- echo "Stopping tinc VPN networks"
+ echo "Stopping tinc VPN networks"
for TINCNET in `tinc_networks`; do
- if [ -f /var/run/tinc."$TINCNET".pid ]; then
- echo "Stopping tinc network $TINCNET"
- /usr/sbin/tincd --kill --pidfile=/var/run/tinc."$TINCNET".pid
- fi
- done
+ if [ -f /var/run/tinc."$TINCNET".pid ]; then
+ echo "Stopping tinc network $TINCNET"
+ /usr/sbin/tincd --kill --pidfile=/var/run/tinc."$TINCNET".pid
+ fi
+ done
}
tinc_reload() {
- echo "Reloading configuration for tinc VPN networks"
+ echo "Reloading configuration for tinc VPN networks"
for TINCNET in `tinc_networks`; do
- if [ -f /var/run/tinc."$TINCNET".pid ]; then
- echo "Reloading tinc network $TINCNET"
- /usr/sbin/tincd --kill HUP --pidfile=/var/run/tinc."$TINCNET".pid
- fi
- done
+ if [ -f /var/run/tinc."$TINCNET".pid ]; then
+ echo "Reloading tinc network $TINCNET"
+ /usr/sbin/tincd --kill HUP --pidfile=/var/run/tinc."$TINCNET".pid
+ fi
+ done
}
case "$1" in