#!/bin/sh ######################################################################## # Begin vsftpd # # Description : Start Very Secure FTP Daemon # # Author : Bruce Dubbs - bdubbs@linuxfromscratch.org # # Version : BLFS 7.0 # ######################################################################## ### BEGIN INIT INFO # Provides: vsftpd # Required-Start: $network # Should-Start: $remote_fs # Required-Stop: $network # Should-Stop: $remote_fs # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Starts vsftpd server. # Description: Starts Very Secure FTP Daemon (vsftpd). # X-LFS-Provided-By: BLFS ### END INIT INFO . /lib/lsb/init-functions case "$1" in start) log_info_msg "Starting vsFTPD Server..." start_daemon /usr/sbin/vsftpd evaluate_retval ;; stop) log_info_msg "Stopping vsFTPD Server..." killproc /usr/sbin/vsftpd evaluate_retval ;; reload) log_info_msg "Reloading vsFTPD Server..." killproc /usr/sbin/vsftpd -HUP evaluate_retval ;; restart) $0 stop sleep 1 $0 start ;; status) statusproc /usr/sbin/vsftpd ;; *) echo "Usage: $0 {start|stop|reload|restart|status}" exit 1 ;; esac # End /etc/init.d/vsftpd