blob: 44a8a682c900b5d4357317435bfdea96e17a6384 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
#!/sbin/runscript
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/mDNSResponder/files/mdnsd.init.d,v 1.2 2005/08/27 16:46:45 greg_g Exp $
opts="${opts} reload dump"
depend() {
after net
}
start() {
ebegin "Starting mdnsd"
start-stop-daemon --start --quiet --pidfile /var/run/mdnsd.pid \
--exec /usr/sbin/mdnsd
eend $? "Failed to start mdnsd"
}
stop() {
ebegin "Stopping mdnsd"
start-stop-daemon --stop --quiet --pidfile /var/run/mdnsd.pid
eend $? "Failed to stop mdnsd"
}
reload() {
ebegin "Reloading mdnsd"
kill -HUP `cat /var/run/mdnsd.pid` >&/dev/null
eend $? "Failed to reload mdnsd"
}
dump() {
ebegin "Dump mdnsd state to logs"
kill -USR1 `cat /var/run/mdnsd.pid` >&/dev/null
eend $? "Failed to dump mdnsd state"
}
|