aboutsummaryrefslogtreecommitdiffstats
path: root/main/tftpd-hpa/in.tftpd.initd
blob: c8657634bfb4d82ff240af8d45bebd4bc142ff0b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/sbin/runscript
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-ftp/tftp-hpa/files/in.tftpd.rc6,v 1.2 2005/07/30 06:29:14 vapier Exp $

depend() {
	need net
	after firewall
}

start() {
	ebegin "Starting tftpd"
	/usr/sbin/in.tftpd -l ${INTFTPD_OPTS}
	eend $?
}

stop() {
	ebegin "Stopping tftpd"
	start-stop-daemon --stop --exec /usr/sbin/in.tftpd
	eend $?
}