aboutsummaryrefslogtreecommitdiff
path: root/net/poptop/files/pptpd.sh.in
blob: faad7bf0f6dd53a4b303cccf276e06d6a4208e67 (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
27
#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: pptpd
# REQUIRE: DAEMON
# KEYWORD: FreeBSD
#
# 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"