diff options
author | BlackNoxis <steven.darklight@gmail.com> | 2015-06-21 10:41:46 +0300 |
---|---|---|
committer | BlackNoxis <steven.darklight@gmail.com> | 2015-06-21 10:41:46 +0300 |
commit | 67cfaa660d1918e67e9ae1c7d9b4fa30a15eb4b1 (patch) | |
tree | 174cfa24b4c4b919c83465761b38699ead693341 /net-dns/avahi-base/files/autoipd-openrc.sh | |
parent | a3c6ae3d3ccd28d1dc8e87733845d4e72af6479b (diff) |
[avahi*] splited packages for avahi, so that avahi won`t get all of the repo installed
Diffstat (limited to 'net-dns/avahi-base/files/autoipd-openrc.sh')
-rw-r--r-- | net-dns/avahi-base/files/autoipd-openrc.sh | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/net-dns/avahi-base/files/autoipd-openrc.sh b/net-dns/avahi-base/files/autoipd-openrc.sh new file mode 100644 index 00000000..dec3aa05 --- /dev/null +++ b/net-dns/avahi-base/files/autoipd-openrc.sh @@ -0,0 +1,32 @@ +# 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 "${?}" +} |