diff options
author | Sergey Popov <pinkbyte@gentoo.org> | 2017-03-27 18:12:34 +0300 |
---|---|---|
committer | Sergey Popov <pinkbyte@gentoo.org> | 2017-03-27 18:17:14 +0300 |
commit | 83d3fb92ea9656e8f856c68f643ce2ca984f72cf (patch) | |
tree | e321bc68f3c3eb30aba868dd1c04e1151db6977d /net-vpn/pptpd/files/pptpd-init-r2 | |
parent | dev-python/lit: enable Python 3 support (diff) | |
download | gentoo-83d3fb92ea9656e8f856c68f643ce2ca984f72cf.tar.gz gentoo-83d3fb92ea9656e8f856c68f643ce2ca984f72cf.tar.bz2 gentoo-83d3fb92ea9656e8f856c68f643ce2ca984f72cf.zip |
net-dialup/pptpd: move to net-vpn/pptpd
Package-Manager: portage-2.3.3
RepoMan-Options: --force
Diffstat (limited to 'net-vpn/pptpd/files/pptpd-init-r2')
-rw-r--r-- | net-vpn/pptpd/files/pptpd-init-r2 | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/net-vpn/pptpd/files/pptpd-init-r2 b/net-vpn/pptpd/files/pptpd-init-r2 new file mode 100644 index 000000000000..6bbf9d68143e --- /dev/null +++ b/net-vpn/pptpd/files/pptpd-init-r2 @@ -0,0 +1,19 @@ +#!/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 /run/pptpd.pid + result=$? + killall -SIGTERM pptpctrl &>/dev/null + eend $result +} |