summaryrefslogtreecommitdiff
path: root/pcr/openrc-desktop/avahi-dnsconfd.initd
diff options
context:
space:
mode:
authorOmar Vega Ramos <ovruni@gnu.org.pe>2015-08-28 18:02:24 -0500
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2015-09-22 16:14:58 -0300
commit1077a9ac2f9b32c6f28f9e6e6188b0f4c8dd926d (patch)
treecd5ec6ff95a6a78408332066142206dc83f6dc5a /pcr/openrc-desktop/avahi-dnsconfd.initd
parenta566855682e5a4de24dadc5ff2aa58d21d802728 (diff)
openrc-desktop-20150828-1: updating version
Diffstat (limited to 'pcr/openrc-desktop/avahi-dnsconfd.initd')
-rw-r--r--pcr/openrc-desktop/avahi-dnsconfd.initd28
1 files changed, 28 insertions, 0 deletions
diff --git a/pcr/openrc-desktop/avahi-dnsconfd.initd b/pcr/openrc-desktop/avahi-dnsconfd.initd
new file mode 100644
index 000000000..1389a2889
--- /dev/null
+++ b/pcr/openrc-desktop/avahi-dnsconfd.initd
@@ -0,0 +1,28 @@
+#!/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() {
+ need avahi-daemon
+ use net
+}
+
+start() {
+ ebegin "Starting avahi-dnsconfd"
+ /usr/bin/avahi-dnsconfd -D
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping avahi-dnsconfd"
+ /usr/bin/avahi-dnsconfd -k
+ eend $?
+}
+
+reload() {
+ ebegin "Reloading avahi-dnsconfd"
+ /usr/bin/avahi-dnsconfd -r
+ eend $?
+}