#!/bin/sh # # chkconfig: 2345 65 35 # description: frox provide ftp transparent proxy. # Source function library. . /etc/rc.d/init.d/functions # Source networking configuration. . /etc/sysconfig/network # Check that networking is up. [ ${NETWORKING} = "no" ] && exit 0 FROX=/usr/local/frox/sbin/frox CONF=/usr/local/frox/etc/frox.conf [ -f $FROX ] || exit 0 [ -f $CONF ] || exit 0 # See how we were called. case "$1" in start) # Start daemons. echo -n "Starting frox: " daemon $FROX -f $CONF echo ;; stop) # Stop daemons. echo -n "Stopping frox: " killproc frox echo ;; restart) $0 stop $0 start ;; *) echo "Usage: frox {start|stop|restart}" exit 1 esac exit 0