diff options
Diffstat (limited to 'net-dialup/xl2tpd/files')
-rw-r--r-- | net-dialup/xl2tpd/files/digest-xl2tpd-1.1.06 | 3 | ||||
-rw-r--r-- | net-dialup/xl2tpd/files/xl2tpd-init | 32 |
2 files changed, 35 insertions, 0 deletions
diff --git a/net-dialup/xl2tpd/files/digest-xl2tpd-1.1.06 b/net-dialup/xl2tpd/files/digest-xl2tpd-1.1.06 new file mode 100644 index 000000000000..95b00dd9ebd3 --- /dev/null +++ b/net-dialup/xl2tpd/files/digest-xl2tpd-1.1.06 @@ -0,0 +1,3 @@ +MD5 44e5a85ecce622a0f55aafc42ce589a8 xl2tpd-1.1.06.tar.gz 149891 +RMD160 d6f03631cc2dee16110a311c6defd3b844face03 xl2tpd-1.1.06.tar.gz 149891 +SHA256 98aeec5b5cc9dbf292482dffeefe01072905739062a78215a970ce09bb465e63 xl2tpd-1.1.06.tar.gz 149891 diff --git a/net-dialup/xl2tpd/files/xl2tpd-init b/net-dialup/xl2tpd/files/xl2tpd-init new file mode 100644 index 000000000000..1f32d2657b77 --- /dev/null +++ b/net-dialup/xl2tpd/files/xl2tpd-init @@ -0,0 +1,32 @@ +#!/sbin/runscript +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-dialup/xl2tpd/files/xl2tpd-init,v 1.1 2006/12/08 21:12:34 mrness Exp $ + +depend() { + need net +} + +checkconfig() { + if [[ ! -f /etc/xl2tpd/xl2tpd.conf ]] ; then + eerror "Missing /etc/xl2tpd/xl2tpd.conf configuration file!" + eerror "Example configuration file could be found in doc directory." + return 1 + fi + + return 0 +} + +start() { + checkconfig || return 1 + + ebegin "Starting xl2tpd" + start-stop-daemon --start --quiet --exec /usr/sbin/xl2tpd + eend $? +} + +stop() { + ebegin "Stopping xl2tpd" + start-stop-daemon --stop --quiet --pidfile /var/run/xl2tpd/xl2tpd.pid + eend $? +} |