diff options
author | Ahmed Bilal Khalid <ahmedbilal96@gmail.com> | 2019-08-25 13:09:49 +0500 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2019-08-26 15:01:10 -0300 |
commit | 95ff6546c9b01ed9857a2e1aa701d32e5add2664 (patch) | |
tree | 8c4dddbde7de28a84bf0f96f519d2fb110acdf22 /testing/ndisc6/rdnssd.initd | |
parent | 461de1ded90e26de29325952ad926623009ebd07 (diff) | |
download | aports-95ff6546c9b01ed9857a2e1aa701d32e5add2664.tar.bz2 aports-95ff6546c9b01ed9857a2e1aa701d32e5add2664.tar.xz |
testing/ndisc6: add rdnssd initscript
Diffstat (limited to 'testing/ndisc6/rdnssd.initd')
-rw-r--r-- | testing/ndisc6/rdnssd.initd | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/testing/ndisc6/rdnssd.initd b/testing/ndisc6/rdnssd.initd new file mode 100644 index 0000000000..32b68c2dbc --- /dev/null +++ b/testing/ndisc6/rdnssd.initd @@ -0,0 +1,20 @@ +#!/sbin/openrc-run +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +depend() { + need localmount + before net + use logger +} + +start() { + ebegin "Starting rdnssd" + start-stop-daemon --start --quiet --exec /usr/sbin/rdnssd -- -u root -r /etc/resolv.conf + eend $? +} + +stop() { + ebegin "Stopping rdnssd" + start-stop-daemon --stop --quiet --pidfile /run/rdnssd.pid +} |