aboutsummaryrefslogblamecommitdiffstats
path: root/main/pptpd/pptpd.initd
blob: d2dc4d107afc0fba9fd41024c7258cca776a9cdf (plain) (tree)
1
                  


















                                                                                 
#!/sbin/openrc-run

depend() {
	need net
}

start() {
	ebegin "Starting pptpd"
	start-stop-daemon --start --quiet --exec /usr/sbin/pptpd -- ${PPTPD_OPTS}
	eend $?
}

stop() {
	ebegin "Stopping pptpd"
	start-stop-daemon --stop --quiet --pidfile /var/run/pptpd.pid
	result=$?
	start-stop-daemon --stop --quiet --exec /usr/sbin/pptpctrl
	result=$(( $result + $? ))
	eend $result
}