summaryrefslogtreecommitdiff
path: root/net-misc/uftp/files/uftpproxyd.init
blob: a4b1107d9d0e5335d0dc7104dc6a98acbf7068b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/sbin/openrc-run
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

PROGRAM=/usr/sbin/uftpproxyd
PIDFILE=/var/run/uftpproxyd.pid

depend() {
	need net
}

start() {
	ebegin "Starting uftpd"
	start-stop-daemon --start --exec ${PROGRAM} -- \
		-L /var/log/uftpproxyd.log -P ${PIDFILE} ${UFTPPROXYD_OPTS}
	eend $? "Failed to start uftpd"
}

stop() {
	ebegin "Stopping uftpd"
	start-stop-daemon --stop --exec ${PROGRAM} -p ${PIDFILE}
	eend $? "Failed to stop uftpd"
}