conf/90893: stock ftpd rcNG script
Norikatsu Shigemura
nork at FreeBSD.org
Sat Dec 24 22:50:09 PST 2005
>Number: 90893
>Category: conf
>Synopsis: stock ftpd rcNG script
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Sun Dec 25 06:50:02 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator: Norikatsu Shigemura
>Release: FreeBSD 7.0-CURRENT i386
>Organization:
Ensure Technology Ltd.
>Environment:
System: FreeBSD pelsia.ninth-nine.com 7.0-CURRENT FreeBSD 7.0-CURRENT #7: Sun Dec 4 00:11:43 JST 2005 nork at pelsia.ninth-nine.com:/usr/obj/usr/src/sys/PELSIA i386
>Description:
I need standalone stock ftpd, so I make a rcNG script for
stock ftpd.
>How-To-Repeat:
N/A
>Fix:
Apply following patch and add ftpd rcNG script.
Index: rc.conf
===================================================================
RCS file: /home/ncvs/src/etc/defaults/rc.conf,v
retrieving revision 1.269
diff -u -r1.269 rc.conf
--- rc.conf 20 Dec 2005 20:36:48 -0000 1.269
+++ rc.conf 25 Dec 2005 04:02:47 -0000
@@ -190,6 +190,9 @@
inetd_enable="NO" # Run the network daemon dispatcher (YES/NO).
inetd_program="/usr/sbin/inetd" # path to inetd, if you want a different one.
inetd_flags="-wW -C 60" # Optional flags to inetd
+ftpd_enable="NO" # Run ftp daemon (YES/NO)
+ftpd_pidfile="/var/run/ftpd.pid" # ftpd pid file
+ftpd_flags="-D" # Optional flags to ftpd
#
# named. It may be possible to run named in a sandbox, man security for
# details.
------------------------------------------------------------------------
#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: ftpd
# REQUIRE: DAEMON LOGIN cleanvar
# KEYWORD: shutdown
. /etc/rc.subr
name="ftpd"
rcvar=`set_rcvar`
load_rc_config ${name}
command=${ftpd_program:-/usr/libexec/${name}}
case "${ftpd_flags}" in
*-p\ *)
echo "Warning: \$ftpd_flags includes -p option." \
"Please use \$ftpd_pidfile instead."
;;
*)
ftpd_flags="-p ${ftpd_pidfile} ${ftpd_flags}" ;;
esac
pidfile=${ftpd_pidfile:-/var/run/${name}.pid}
run_rc_command "$1"
------------------------------------------------------------------------
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list