delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/02/12/23:39:53

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <3C69EF53.9060708@rochester.rr.com>
Date: Tue, 12 Feb 2002 23:45:07 -0500
From: Chuck Messenger <chuckm AT rochester DOT rr DOT com>
Reply-To: chuckm AT rochester DOT rr DOT com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.8) Gecko/20020204
X-Accept-Language: en-us
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Best way to run SSHD, etc., on Win9x?

I run some Cygwin daemons on Win98 boxes.  The way I do it is to put the 
following shortcut in the Windows Startup folder:

c:\cygwin\bin\bash.exe --rcfile /usr/local/bin/startup.sh -i

Then in startup.sh, I have:

/usr/sbin/sshd
/usr/bin/rsync --daemon
/usr/sbin/cron

I could be wrong about some of the options/paths.  But that's the idea. 
 Then, whenever Win98 boots, I end up with a minimized DOS shell.  I've 
found that I need the shell to hang around, or the daemons die off 
(hence the --rcfile and -i options to bash).

This works fine, but the problem is that when I shut down the machine, I 
have to kill off the DOS shell by hand.

I imagine there must be a better way.  Anyone have any suggestions?

 
    - Chuck


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019