summaryrefslogtreecommitdiff
path: root/net/poptop/files/pptpd.in
blob: d953837d0e98fc97fd49085853c7cfeab18def3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh

# PROVIDE: pptpd
# REQUIRE: DAEMON
#
# Add the following lines to /etc/rc.conf to enable pptpd:
#
# pptpd_enable="YES"
# pptpd_flags="<set as needed>"

pptpd_enable=${pptpd_enable-"NO"}

. /etc/rc.subr

name=pptpd
rcvar=pptpd_enable

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

load_rc_config ${name}
run_rc_command "$1"