Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: conserver: users

8.X config

 

 

conserver users RSS feed   Index | Next | Previous | View Threaded


cfowler at outpostsentinel

Jun 15, 2006, 5:48 PM

Post #1 of 3 (1169 views)
Permalink
8.X config

Hopefully someone here can give me some pointers on configuring 8.X
since I'm used to 7.X. Here is my config:

# first, we're going to set some generic console defaults so that we
# don't have to duplicate them for each console.
default * {
logfile /var/log/consoles/&; # '&' is replaced with console
name
timestamp 1hab; # write timestamps
rw *; # allow all users
master localhost;
type host;
}

console fc4 {
type uds;
uds /home/vmware/vmware/fc4/ttyS0;
}

# set up the an access list to avoid the default
# anything *not* matched here will fallback to the default access (-a)
# mode
access * {
trusted 127.0.0.1;
}


I'm trying to add a console that is connected via a PERL script. The
perl script interfaces with a modem and dials a remote device. So I do
not want it to stay connected 24x7. I only want it to run when a user
is attached. Any pointers?


_______________________________________________
users mailing list
users [at] conserver
https://www.conserver.com/mailman/listinfo/users


bryan at conserver

Jun 15, 2006, 7:59 PM

Post #2 of 3 (1076 views)
Permalink
Re: 8.X config [In reply to]

On Thu, Jun 15, 2006 at 08:48:30PM -0400, Christopher Fowler wrote:
> I'm trying to add a console that is connected via a PERL script. The
> perl script interfaces with a modem and dials a remote device. So I do
> not want it to stay connected 24x7. I only want it to run when a user
> is attached. Any pointers?

console foo {
options ondemand;
type exec;
exec your-command and options here;
# 'execsubst' might be useful as well, if you want magic
# to occur in the 'exec' line
}
_______________________________________________
users mailing list
users [at] conserver
https://www.conserver.com/mailman/listinfo/users


cfowler at outpostsentinel

Jun 16, 2006, 5:48 AM

Post #3 of 3 (1088 views)
Permalink
Re: 8.X config [In reply to]

My biggest problem is that I have 7.X servers out there that can not be
upgraded. My Java client uses the 7.X protocol and adding a 8.X server
may hurt me.

I need on demand because I do not want the modem to stay dialed all the
time. One option is to stay with 7.X and modify the program so it
manages the modem and only connects when the user is doing something.
It can then timeout on select() for 5m and if that timeout occurs it can
drop the line. It makes my program a tad more complex but I wrote it
and I can make it do anything I want it to do :)

On Thu, 2006-06-15 at 19:59 -0700, Bryan Stansell wrote:
> On Thu, Jun 15, 2006 at 08:48:30PM -0400, Christopher Fowler wrote:
> > I'm trying to add a console that is connected via a PERL script. The
> > perl script interfaces with a modem and dials a remote device. So I do
> > not want it to stay connected 24x7. I only want it to run when a user
> > is attached. Any pointers?
>
> console foo {
> options ondemand;
> type exec;
> exec your-command and options here;
> # 'execsubst' might be useful as well, if you want magic
> # to occur in the 'exec' line
> }
> _______________________________________________
> users mailing list
> users [at] conserver
> https://www.conserver.com/mailman/listinfo/users

_______________________________________________
users mailing list
users [at] conserver
https://www.conserver.com/mailman/listinfo/users

conserver users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.