From 1077a9ac2f9b32c6f28f9e6e6188b0f4c8dd926d Mon Sep 17 00:00:00 2001 From: Omar Vega Ramos Date: Fri, 28 Aug 2015 18:02:24 -0500 Subject: openrc-desktop-20150828-1: updating version --- pcr/openrc-desktop/avahi-daemon.initd | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 pcr/openrc-desktop/avahi-daemon.initd (limited to 'pcr/openrc-desktop/avahi-daemon.initd') diff --git a/pcr/openrc-desktop/avahi-daemon.initd b/pcr/openrc-desktop/avahi-daemon.initd new file mode 100644 index 000000000..3db552903 --- /dev/null +++ b/pcr/openrc-desktop/avahi-daemon.initd @@ -0,0 +1,29 @@ +#!/usr/bin/openrc-run +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +extra_started_commands="reload" + +depend() { + before netmount nfsmount + use net + need dbus +} + +start() { + ebegin "Starting avahi-daemon" + /usr/bin/avahi-daemon -D + eend $? +} + +stop() { + ebegin "Stopping avahi-daemon" + /usr/bin/avahi-daemon -k + eend $? +} + +reload() { + ebegin "Reloading avahi-daemon" + /usr/bin/avahi-daemon -r + eend $? +} -- cgit v1.2.3-2-g168b