Re: Install-Fest Question

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Steve
Date:  
To: plug-discuss, plug-discuss
New-Topics: email test (ignore)
Subject: Re: Install-Fest Question
Thank you very very much Alan. Ok I will take down my LAN Friday night and rebuild the machine and be there at 10:00 Sat morning. Concerning the vsftpd, the redhat Bible gave me the vsftpd.conf info I needed, however, I wanted to set vsftpd to come up on boot and I did a ln -s ../init.d/vsftpd S90vsftpd to create a sybolic link in rc5.d with the skeleton script in init.d that looks like this:


#! /bin/bash
#
# $Id: skeleton,v 1.8 1999/07/19 14:36:10 ray Exp ray $
#
### BEGIN INIT INFO
# Provides: <boot facility 1> [<boot facility 2> ...]
# Required-Start: <boot facility 1> [<boot facility 2> ...]
# Required-Stop: <boot facility 1> [<boot facility 2> ...]
# Default-Start: <run level 1> [<run level 2> ...]
# Default-Stop: <run level 1> [<run level 2> ...]
# Description: skeleton
#        example file to build /etc/rc.d/init.d/ scripts.
#        This file should be used to construct scripts
#        for /etc/rc.d/init.d.
### END INIT INFO
#
# Written by Miquel van Smoorenburg <>.
# Modified for Debian GNU/Linux by Ian Murdock <>.
# Modified for OpenLinux by Raymund Will <>


NAME=vsftpd
DAEMON=/usr/sbin/$NAME

# Source function library (and set vital variables).
. /etc/rc.d/init.d/functions

case "$1" in
start)
[ ! -e $SVIlock ] || exit 0
[ -x $DAEMON ] || exit 5
SVIemptyConfig /etc/$NAME.conf && exit 6

echo -n "Starting $SVIsubsys services: "
ssd -S -x $DAEMON -n $NAME -- $OPTIONS
ret=$?

echo "."
touch $SVIlock
;;

stop)
[ -e $SVIlock ] || exit 0

echo -n "Stopping $SVIsubsys services: "
ssd -K -p /var/run/$NAME.pid -x $DAEMON -n $NAME
ret=$?

echo "."
rm -f $SVIlock
;;

## Only one of the two following may be present in any one script!
## Alternative #1:
force-reload|reload)
[ -e $SVIlock ] || exit 0

echo "Reloading $SVIsubsys configuration files: "
ssd -K --signal 1 -q -p /var/run/$NAME.pid -n $NAME
ret=$?
echo "done."
;;
## Alternative #2:
# force-reload)





On boot I'm getting a syntax error, with an entry in /ver/log/messages of:

vsftpd: /etc/rc5.d/S90vsftpd: line 65: syntax error: unexpected end of file

I'm not a great bash script kitty, so a little help here would be nice. I copied this script and I must have left something out, but I don't see it. Do you?
And a second question: Am I going about this the right way to get it to not only boot but shutdown cleanly?

Steve

---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss