diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2012-01-29 10:54:18 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2012-01-29 10:55:20 +0000 |
commit | c898883fe3ec841f99d685a4c88e45ec5c42b647 (patch) | |
tree | ad2e764720f319ff3662881efe20c2a18eabde8d /main/xl2tpd/xl2tpd.initd | |
parent | 2732a6c3e4937ccb28bfaad9afaaf9b297bd5d2b (diff) | |
download | aports-c898883fe3ec841f99d685a4c88e45ec5c42b647.tar.bz2 aports-c898883fe3ec841f99d685a4c88e45ec5c42b647.tar.xz |
main/xl2tpd: moved from testing
and claim ownership
fixes #699
Diffstat (limited to 'main/xl2tpd/xl2tpd.initd')
-rw-r--r-- | main/xl2tpd/xl2tpd.initd | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/main/xl2tpd/xl2tpd.initd b/main/xl2tpd/xl2tpd.initd new file mode 100644 index 0000000000..d56e1671e8 --- /dev/null +++ b/main/xl2tpd/xl2tpd.initd @@ -0,0 +1,20 @@ +#!/sbin/runscript + +depend() { + need net +} + +start() { + ebegin "Starting xl2tpd" + start-stop-daemon --start --quiet --exec /usr/sbin/xl2tpd -- ${XL2TPD_OPTS} + eend $? +} + +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 +} |