diff options
Diffstat (limited to 'sys-apps/busybox/files/busybox-ntpd.initd')
-rw-r--r-- | sys-apps/busybox/files/busybox-ntpd.initd | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/sys-apps/busybox/files/busybox-ntpd.initd b/sys-apps/busybox/files/busybox-ntpd.initd new file mode 100644 index 0000000..495bc53 --- /dev/null +++ b/sys-apps/busybox/files/busybox-ntpd.initd @@ -0,0 +1,21 @@ +#!/sbin/runscript +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/busybox-ntpd/files/busybox-ntpd.initd,v 1.1 2012/08/21 12:39:10 sbriesen Exp $ + +depend() { + use net dns logger + after ntp-client +} + +start() { + ebegin "Starting busybox-ntpd" + start-stop-daemon --start --quiet --exec /bin/busybox ntpd -- ${NTPD_OPTS} + eend ${?} "Failed to start ntpd" +} + +stop() { + ebegin "Stopping busybox-ntpd" + start-stop-daemon --stop --retry 15 --quiet --exec /bin/busybox nptd + eend ${?} "Failed to stop ntpd" +} |