diff options
author | Peter Volkov <pva@gentoo.org> | 2011-06-20 09:32:26 +0000 |
---|---|---|
committer | Peter Volkov <pva@gentoo.org> | 2011-06-20 09:32:26 +0000 |
commit | 423c910718780b5b044e9ea0c8039fca8c106463 (patch) | |
tree | 592dffbfb869842d88b29109352f174c43404672 /net-dialup/pptpd/files | |
parent | x86 stable wrt security bug #370787 (diff) | |
download | gentoo-2-423c910718780b5b044e9ea0c8039fca8c106463.tar.gz gentoo-2-423c910718780b5b044e9ea0c8039fca8c106463.tar.bz2 gentoo-2-423c910718780b5b044e9ea0c8039fca8c106463.zip |
Make init script openrc compatible, bug 371575 thank Laszlo Valko for report. Update EAPI.
(Portage version: 2.1.10.3/cvs/Linux x86_64)
Diffstat (limited to 'net-dialup/pptpd/files')
-rw-r--r-- | net-dialup/pptpd/files/pptpd-init-r1 | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/net-dialup/pptpd/files/pptpd-init-r1 b/net-dialup/pptpd/files/pptpd-init-r1 new file mode 100644 index 000000000000..36af3f25fff0 --- /dev/null +++ b/net-dialup/pptpd/files/pptpd-init-r1 @@ -0,0 +1,20 @@ +#!/sbin/runscript + +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 +} |