diff options
author | Omar Vega Ramos <ovruni@gnu.org.pe> | 2015-08-28 18:02:24 -0500 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2015-09-22 16:14:58 -0300 |
commit | 1077a9ac2f9b32c6f28f9e6e6188b0f4c8dd926d (patch) | |
tree | cd5ec6ff95a6a78408332066142206dc83f6dc5a /pcr/openrc-desktop/avahi-daemon.initd | |
parent | a566855682e5a4de24dadc5ff2aa58d21d802728 (diff) |
openrc-desktop-20150828-1: updating version
Diffstat (limited to 'pcr/openrc-desktop/avahi-daemon.initd')
-rw-r--r-- | pcr/openrc-desktop/avahi-daemon.initd | 29 |
1 files changed, 29 insertions, 0 deletions
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 $? +} |