2001-07-15 15:30:20 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
2005-06-06 01:39:04 +02:00
|
|
|
# PROVIDE jftpgw
|
|
|
|
# REQUIRE: NETWORKING SERVERS
|
|
|
|
# BEFORE: DAEMON
|
|
|
|
# KEYWORD: FreeBSD shutdown
|
2002-04-11 22:12:21 +02:00
|
|
|
|
2005-06-06 01:39:04 +02:00
|
|
|
#
|
|
|
|
# Add the following lines to /etc/rc.conf to enable pure-ftpd:
|
|
|
|
#
|
|
|
|
# jftpgw_enable="YES"
|
|
|
|
#
|
2001-07-15 15:30:20 +02:00
|
|
|
|
2005-06-06 01:39:04 +02:00
|
|
|
. %%RC_SUBR%%
|
2001-07-15 15:30:20 +02:00
|
|
|
|
2005-06-06 01:39:04 +02:00
|
|
|
name=jftpgw
|
|
|
|
rcvar=`set_rcvar`
|
2001-07-15 15:30:20 +02:00
|
|
|
|
2005-06-06 01:39:04 +02:00
|
|
|
command=%%PREFIX%%/sbin/jftpgw
|
|
|
|
jftpgw_config=${jftpgw_config:-"%%PREFIX%%/etc/jftpgw.conf"}
|
|
|
|
required_files=${jftpgw_config}
|
|
|
|
pidfile=/var/run/jftpgw.pid
|
2001-07-15 15:30:20 +02:00
|
|
|
|
2005-06-06 01:39:04 +02:00
|
|
|
jftpgw_enable=${jftpgw_enable:-"NO"}
|
|
|
|
command_args="-f ${jftpgw_config}"
|
2001-07-15 15:30:20 +02:00
|
|
|
|
2005-06-06 01:39:04 +02:00
|
|
|
load_rc_config $name
|
|
|
|
run_rc_command "$1"
|