blob: 38a6ea3779a43d280a4346c9ec83ce0ee8f4164c [file] [log] [blame]
#!/sbin/openrc-run
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
PROGRAM=/usr/sbin/uftpd
PIDFILE=/var/run/uftpd.pid
depend() {
need net
}
start() {
ebegin "Starting uftpd"
start-stop-daemon --start --exec ${PROGRAM} -- \
-L /var/log/uftpd.log -P ${PIDFILE} -D ${UFTPD_DIR} ${UFTPD_OPTS}
eend $? "Failed to start uftpd"
}
stop() {
ebegin "Stopping uftpd"
start-stop-daemon --stop --exec ${PROGRAM} -p ${PIDFILE}
eend $? "Failed to stop uftpd"
}