S70vsftpd 431 B

123456789101112131415161718192021222324252627282930313233
  1. #! /bin/sh
  2. set -e
  3. DESC="vsftpd"
  4. NAME=vsftpd
  5. DAEMON=/usr/sbin/$NAME
  6. case "$1" in
  7. start)
  8. printf "Starting $DESC: "
  9. start-stop-daemon -S -b -x $DAEMON
  10. echo "OK"
  11. ;;
  12. stop)
  13. printf "Stopping $DESC: "
  14. start-stop-daemon -K -x $DAEMON
  15. echo "OK"
  16. ;;
  17. restart|force-reload)
  18. echo "Restarting $DESC: "
  19. $0 stop
  20. sleep 1
  21. $0 start
  22. echo ""
  23. ;;
  24. *)
  25. echo "Usage: $0 {start|stop|restart|force-reload}" >&2
  26. exit 1
  27. ;;
  28. esac
  29. exit 0