📄 redhat.init
字号:
#!/bin/bash## Startup script for the pure-ftpd FTP Server $Revision: 1.3 $## chkconfig: 2345 85 15# description: Pure-FTPd is an FTP server daemon based upon Troll-FTPd# processname: pure-ftpd# pidfile: /var/run/pure-ftpd.pid# config: /etc/pure-ftpd.conf# Source function library.. /etc/rc.d/init.d/functionsRETVAL=0# Path to the pure-ftp binaries.prog=pure-config.plfullpath=/usr/local/sbin/$progpureftpwho=/usr/local/sbin/pure-ftpwhostart() { echo -n $"Starting $prog: " $fullpath /etc/pure-ftpd.conf --daemonize RETVAL=$? [ $RETVAL = 0 ] && touch /var/lock/subsys/$prog echo}stop() { echo -n $"Stopping $prog: " kill $(cat /var/run/pure-ftpd.pid) RETVAL=$? [ $RETVAL = 0 ] && rm -f /var/lock/subsys/$prog echo}# See how we were called.case "$1" in start) start ;; stop) stop ;; restart) stop start ;; condrestart) if [ -f /var/lock/subsys/$prog ] ; then stop # avoid race sleep 3 start fi ;; status) status $prog RETVAL=$? if [ -f $pureftpwho ] && [ $RETVAL -eq 0 ] ; then $pureftpwho fi ;; *) echo $"Usage: $prog {start|stop|restart|condrestart|status}" RETVAL=1esacexit $RETVAL
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -