TIP: Click on subject to list as thread! ANSI
echo: muffin
to: Bo Simonsen
from: sean rima
date: 2003-12-13 17:35:14
subject: Starting Max/Linux on a remove box with no screen output

* Reply to a message in WIMM.

Sat 2003-12-13 14:56, Bo Simonsen (2:236/100) wrote to Sean Rima:

 SR>> I have been trying to start maximus on a linux box remotely so that
 SR>> people can log on but because it will have no screen output, it
 SR>> seems to die. Has anyone manged this type of setup?

 BS> It's not working so well as I want it too..

 BS> The idea should be: 

 BS>    * Let's listening to port 2000
 BS>    * Wow we got a caller, let's fork, so we still listen at 2000,
 BS> but we      still maintain the connection to the caller.

 BS> The fork() thing did work, but the process were still listening at
 BS> 2000, but I didn't should. I couldn't really fix it. :-(

 BS> So now Maximus only allows one caller pr. tcp/ip port. :-(

 BS> My script for starting max is:

 BS> ERRLVL=0

 BS> while [ $ERRLVL -eq 0 ]; do
 BS>   cd /home/ftn/
 BS>   bin/max -w -p2000 -b38400 -n1
 BS>   ERR=$?
 BS>   echo "errorlevel " $ERR
 BS>   ERRLVL=0
 BS>   if [ $ERR = 1 ]; then
 BS>     echo "Exting Max ..."
 BS>     exit
 BS>     ERRLVL=1
 BS>   fi
 BS> sleep 7
 BS> done

 BS> I wonder if you can use it..

I use the runbbs script that seems to do the same job. BUT as soon as I
close the ssh session to start the script it dies anyway. (wanders off and
uses this script via ssh and terminates the session) (telnets to tcob1.net
2000) umm

----
sean{at}home:~> telnet tcob1.net 2000
Trying 69.10.132.224...
telnet: connect to address 69.10.132.224: Connection refused
----

(wanders off again to ssh to tcob1.net)

---- 
mbse{at}tcob1:~$ ps x
  PID TTY      STAT   TIME COMMAND
11775 ?        S      0:00 /usr/sbin/sshd
11776 pts/0    S      0:00 -sh
11777 pts/0    R      0:00 ps x
----

(crys and bangs head of wall)
Nope, it dies as soon as you close the ssh session (wanders off again)

-----
mbse{at}tcob1:~$ bin/runbbs.sh &
[1] 11786
mbse{at}tcob1:~$

MAXIMUS Version 3.03b
Copyright 1989, 2003 by Lanius Corporation.  All rights reserved.



[1]+  Stopped(SIGTTOU)        bin/runbbs.sh
------

------
mbse{at}tcob1:~$ ps x
  PID TTY      STAT   TIME COMMAND
11775 ?        S      0:00 /usr/sbin/sshd
11776 pts/0    S      0:00 -sh
11786 pts/0    T      0:00 /bin/sh bin/runbbs.sh
11787 pts/0    T      0:00 bin/max -w -p2000 -b38400 -n1
11793 pts/0    R      0:00 ps x
------

umm lokks good, now close the ssh session
---------
mbse{at}tcob1:~$ exit
logout
There are stopped jobs.
---------

Arghhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh and clicks on the box to
close and yet again it is stopped once the ssh session finished :(

(wanders off again and crys)

-- sean
TCOB1.net mailing lists http://mail.tcob1.net/mailman/listinfo 
--- timEd/Linux 1.11.b1
* Origin: Ireland Main and Best Fidonet (2:263/950)
SEEN-BY: 633/267 270
@PATH: 263/950 951 261/38 123/500 106/2000 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.