summaryrefslogtreecommitdiffstats
path: root/main/xl2tpd/xl2tpd.initd
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2013-04-10 08:36:22 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2013-04-10 08:36:22 +0000
commit7fcc2d3f5f5473b233abaeacc1f8cb5823feb28c (patch)
tree27a80f6449c77ca1068b0d06c63f25ddb7610ad9 /main/xl2tpd/xl2tpd.initd
parentbd7cf19fd242c0d5598aa061f197aecd6ee2dec4 (diff)
downloadaports-7fcc2d3f5f5473b233abaeacc1f8cb5823feb28c.tar.bz2
aports-7fcc2d3f5f5473b233abaeacc1f8cb5823feb28c.tar.xz
main/xl2tpd: create /var/run/xl2tpd dir at startup
fixes #1767
Diffstat (limited to 'main/xl2tpd/xl2tpd.initd')
-rw-r--r--main/xl2tpd/xl2tpd.initd25
1 files changed, 9 insertions, 16 deletions
diff --git a/main/xl2tpd/xl2tpd.initd b/main/xl2tpd/xl2tpd.initd
index d56e1671e..142287c5e 100644
--- a/main/xl2tpd/xl2tpd.initd
+++ b/main/xl2tpd/xl2tpd.initd
@@ -1,20 +1,13 @@
#!/sbin/runscript
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-dialup/xl2tpd/files/xl2tpd-init-r1,v 1.3 2012/12/25 20:48:00 floppym Exp $
-depend() {
- need net
-}
-
-start() {
- ebegin "Starting xl2tpd"
- start-stop-daemon --start --quiet --exec /usr/sbin/xl2tpd -- ${XL2TPD_OPTS}
- eend $?
-}
+command="/usr/sbin/xl2tpd"
+command_args="$XL2TPD_OPTS"
+pidfile="/var/run/xl2tpd.pid"
+required_files="/etc/xl2tpd/xl2tpd.conf"
-stop() {
- ebegin "Stopping xl2tpd"
- start-stop-daemon --stop --quiet --pidfile /var/run/xl2tpd.pid
- result=$?
- start-stop-daemon --stop --quiet --exec /usr/sbin/xl2tpd-control
- result=$(( $result + $? ))
- eend $result
+start_pre() {
+ checkpath -d /var/run/xl2tpd
}