[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Strange shutdown messages



On Sun, Mar 27, 2005 at 10:13:40AM +0200, David Baron wrote:
> >The sslwrap daemon produces these (hey, I did not know I had one and am not 
> >running a html or ssl server--webmin lists it as not started.) The messages 
> >are the same at shutdown or when manually trying to stop or start the daemon 
> >from webmin. I did not notice them on a reboot rather than shutdown.
> 
> >They are a set of messages of this form:
> 
> >Trying to add the following entry:
> 
> > #<off># ftps   stream  tcp nowait  
> >sslwrap:sslwrap /usr/sbin/tcpd  /usr/sbin/sslwrap  -nocert -addr 127.0.0.1 
> >-port 21
> 
> >There is already an entry for #<off># ftps in /etc/inetd.conf,
> >but I don't recognise it.  Here is what it looks like:
> 
> > #<off># ftps   stream  tcp nowait  
> >sslwrap.sslwrap /usr/sbin/tcpd  /usr/sbin/sslwrap  -nocert -addr 127.0.0.1 
> >-port 21
> 
> >Do you want to ignore this potential problem and continue, or would
> >you rather not do so now ?  Continue?  (n/y) 
> 
> This is line 32 of the sllwrap script:
> 
> if [ "$run_mode" != "daemon" -a "$run_mode" != "inetd" ] ; then
>         exit 0;
> fi
> 
> 
> Should that -a (file exists?) be an '&'  ??
Not quite, '-e' checks if a file exists; this line (correctly, I guess) 
however checks if '$run_mode' is neither as a daemon or from within
inetd and then exits.  

Hth,
-- 
Andreas Rippl -- GPG messages preferred
                 Key-ID: 0x81073379

Attachment: signature.asc
Description: Digital signature


Reply to: