uftpd.init 518 B

123456789101112131415161718192021222324
  1. #!/sbin/openrc-run
  2. # Copyright 1999-2012 Gentoo Foundation
  3. # Distributed under the terms of the GNU General Public License v2
  4. PROGRAM=/usr/sbin/uftpd
  5. PIDFILE=/var/run/uftpd.pid
  6. depend() {
  7. need net
  8. }
  9. start() {
  10. ebegin "Starting uftpd"
  11. start-stop-daemon --start --exec ${PROGRAM} -- \
  12. -L /var/log/uftpd.log -P ${PIDFILE} -D ${UFTPD_DIR} ${UFTPD_OPTS}
  13. eend $? "Failed to start uftpd"
  14. }
  15. stop() {
  16. ebegin "Stopping uftpd"
  17. start-stop-daemon --stop --exec ${PROGRAM} -p ${PIDFILE}
  18. eend $? "Failed to stop uftpd"
  19. }