/[smeserver]/rpms/pptpd/sme10/pptpd.sysv
ViewVC logotype

Annotation of /rpms/pptpd/sme10/pptpd.sysv

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (hide annotations) (download)
Thu Feb 4 13:25:23 2016 UTC (8 years, 9 months ago) by vip-ire
Branch: MAIN
CVS Tags: pptpd-1_3_4-2_el7_sme, HEAD
sme10 branch

1 vip-ire 1.1 #!/bin/sh
2     #
3     # Startup script for the PPTP VPN server.
4     #
5     # chkconfig: 2345 99 01
6     # description: This script starts your PPTP VPN server
7     # processname: pptpd
8     # pidfile: /var/run/pptpd.pid
9    
10     # Source function library.
11     . /etc/rc.d/init.d/functions
12    
13     # Source networking configuration.
14     . /etc/sysconfig/network
15    
16     # Check that networking is up.
17     [ ${NETWORKING} = "no" ] && exit 0
18    
19     prog="pptpd"
20     RETVAL=0
21    
22     # See how we were called.
23     case "$1" in
24     start)
25     echo -n $"Starting $prog: "
26     daemon pptpd
27     RETVAL=$?
28     echo
29     [ $RETVAL -eq 0 ] && touch /var/lock/subsys/pptpd
30     ;;
31     stop)
32     echo -n $"Stopping $prog: "
33     killproc pptpd
34     RETVAL=$?
35     echo
36     [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/pptpd
37     ;;
38     status)
39     status pptpd
40     RETVAL=$?
41     ;;
42     restart|reload)
43     $0 stop
44     $0 start
45     RETVAL=$?
46     ;;
47     condrestart)
48     if test "x`/sbin/pidof pptpd`" != x; then
49     $0 stop
50     $0 start
51     RETVAL=$?
52     fi
53     ;;
54     *)
55     echo "Usage: $0 {start|stop|restart|reload|condrestart|status}"
56     exit 1
57     esac
58    
59     exit $RETVAL

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed