aboutsummaryrefslogtreecommitdiffstats
path: root/net/poptop/files/pptpd.sh.in
blob: 6e108878f335822c49220403188e1db5a239b105 (plain) (blame)
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
#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: pptpd
# REQUIRE: DAEMON
#
# Add the following line to /etc/rc.conf to enable pptpd:
#
# pptpd_enable="YES"
#

pptpd_enable=${pptpd_enable-"NO"}
pptpd_flags=${pptpd_flags-""}

. %%RC_SUBR%%

name=pptpd
rcvar=`set_rcvar`

command=%%PREFIX%%/sbin/${name}
pidfile=/var/run/${name}.pid
sig_stop=KILL

load_rc_config ${name}
run_rc_command "$1"