blob: 8ff484a5c677cbf1bf16adb934631678e5381681 (
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
|
#!/sbin/runscript
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/ndtpd/files/ndtpd.initd,v 1.3 2004/03/06 03:36:03 vapier Exp $
opts="${opts} reload"
depend() {
use net
}
start() {
ebegin "Starting NDTPD"
start-stop-daemon --start --quiet --exec /usr/sbin/ndtpd
result=$?
eend $result
}
stop() {
ebegin "Stopping NDTPD"
start-stop-daemon --start --quiet --exec /usr/sbin/ndtpcontrol terminate
result=$?
eend $result
}
reload() {
ebegin "Reloading NDTPD"
start-stop-daemon --start --quiet --exec /usr/sbin/ndtpcontrol restart
eend $result
}
|