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/net-dns/avahi/files/autoipd-openrc.sh

33 lines
700 B

# Copyright (C) 2004-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# Contributed by Sven Wegener (swegener@gentoo.org)
_config_vars="$_config_vars autoipd"
autoipd_depend() {
program /usr/sbin/avahi-autoipd
after interface
}
autoipd_start() {
_exists true || return 1
eval args=\$autoipd_${IFVAR}
ebegin "Starting avahi-autoipd"
/usr/sbin/avahi-autoipd --daemonize --syslog --wait ${args} "${IFACE}"
eend "${?}" || return 1
_show_address
return 0
}
autoipd_stop() {
/usr/sbin/avahi-autoipd --check --syslog "${IFACE}" || return 0
ebegin "Stopping avahi-autoipd"
/usr/sbin/avahi-autoipd --kill --syslog "${IFACE}"
eend "${?}"
}