You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
518 B
24 lines
518 B
#!/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"
|
|
}
|