You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/sys-auth/icmpdn/files/init.d-icmpdnd

28 lines
574 B

#!/sbin/runscript
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
BINARY="/usr/sbin/icmpdnd"
[ -n "${TTL}" ] && ICMPDND_OPTS="${ICMPDND_OPTS} -t ${TTL}"
[ -n "${DOMAINNAME}" ] && ICMPDND_OPTS="${ICMPDND_OPTS} -d ${DOMAINNAME}"
depend() {
need net
after ypbind
}
start() {
ebegin "Starting icmpdnd"
start-stop-daemon --start --quiet --exec ${BINARY} -- ${ICMPDND_OPTS}
eend $?
}
stop() {
ebegin "Stopping icmpdnd"
start-stop-daemon --stop --quiet --exec ${BINARY}
eend $?
}