]> Pileus Git - ~andy/sunrise/blob - net-dns/inadyn-mt/files/inadyn-mt.initd
net-dns/inadyn-mt: New package, bug #231950. ebuilds etc. are based on those for...
[~andy/sunrise] / net-dns / inadyn-mt / files / inadyn-mt.initd
1 #!/sbin/runscript
2 # Copyright 1999-2007 Gentoo Foundation
3 # Distributed under the terms of the GNU General Public License v2
4 # $Header: $
5
6 depend() {
7         need net
8         use logger dns
9         after bootmisc
10 }
11
12 start() {
13         ebegin "Starting inadyn"
14         start-stop-daemon --start --chuid inadyn-mt --exec /usr/sbin/inadyn-mt \
15             --pidfile /var/run/inadyn-mt.pid --make-pidfile --background \
16             -- --syslog --input_file /etc/conf.d/inadyn-mt
17         eend $?
18 }
19
20 stop() {
21         ebegin "Stopping inadyn"
22         start-stop-daemon --stop --exec /usr/sbin/inadyn-mt \
23             --pidfile /var/run/inadyn-mt.pid
24         eend $?
25 }