File: vtund.rc.red_hat

package info (click to toggle)
vtun 3.0.4-2
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye
  • size: 1,520 kB
  • sloc: ansic: 4,180; sh: 2,814; yacc: 536; lex: 195; makefile: 139
file content (44 lines) | stat: -rw-r--r-- 891 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/bin/sh
#
# Script for starting and stoping vtund.
#
# Writen by Dag Wieers <dag@mind.be>. 
#
# chkconfig: 345 55 45
# description: vtund Virtual Tunnel Daemon.
#    VTun provides the method for creating Virtual Tunnels over TCP/IP networks
#    and allows to shape, compress, encrypt traffic in that tunnels.

# Source function library.
. /etc/rc.d/init.d/functions

# See how we were called.
case "$1" in
  start)
        echo -n "Starting vtund: "
        daemon vtund -s
        echo
        touch /var/lock/subsys/vtund
        ;;
  stop)
        echo -n "Stopping vtund: "
        killproc vtund
        echo
        rm -f /var/lock/subsys/vtund
        ;;
  restart)
        echo -n "Restarting vtund: "
	killproc vtund -HUP
        echo
        ;;
  status)
        status vtund
        ;;
  *)
        echo "Usage: vtund {start|stop|restart|status}"
        exit 1
esac

exit 0