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

Mailing List Archive: conserver: users

message and exit

 

 

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


gregtillman at comcast

Mar 8, 2006, 7:43 AM

Post #1 of 3 (1326 views)
Permalink
message and exit

Is there any way to set up a console in conserver.cf such that consoling there simply displays a message, and then exits. I've got the message display part, and i could leave it at that, but it's a little inelegant to have the users sit there at the 'console down' message-- it would be nice to just exit them back to the shell.

fyi, the purpose here is so we don't have to remember those few machines that have a different method for accessing consoles (like on HMCs). thanks for any help.

- greg


jdwhite at jdwhite

Mar 8, 2006, 9:15 AM

Post #2 of 3 (1217 views)
Permalink
Re: message and exit [In reply to]

On Wed, Mar 08, 2006 at 03:43PM +0000, gregtillman [at] comcast wrote:
>Is there any way to set up a console in conserver.cf such that consoling
>there simply displays a message, and then exits. I've got the message
>display part, and i could leave it at that, but it's a little inelegant to
>have the users sit there at the 'console down' message-- it would be nice
>to just exit them back to the shell.
>
>fyi, the purpose here is so we don't have to remember those few machines
>that have a different method for accessing consoles (like on HMCs). thanks
>for any help.

You could use the 'motd' option:

console foo {
type exec;
exec sleep 99999;
motd "This device isn't accessed via conserver.";
}


> console foo
[Enter `^Ec?' for help]
[-- MOTD -- This device isn't accessed via conserver.]

There may be a better way to define a console that does nothing. Also, you
may wish to set a null value for logfile.

-Jason

--
Jason White <jdwhite [at] jdwhite> Jabber: jdwhite(jabber.org)
http://www.jdwhite.org/~jdwhite jason.d.white(gmail.com)
PGP KeyID: 0x5290E477
_______________________________________________
users mailing list
users [at] conserver
https://www.conserver.com/mailman/listinfo/users


bryan at conserver

Mar 8, 2006, 10:24 PM

Post #3 of 3 (1222 views)
Permalink
Re: message and exit [In reply to]

On Wed, Mar 08, 2006 at 03:43:34PM +0000, gregtillman [at] comcast wrote:
> Is there any way to set up a console in conserver.cf such that
> consoling there simply displays a message, and then exits. I've got
> the message display part, and i could leave it at that, but it's a
> little inelegant to have the users sit there at the 'console down'
> message-- it would be nice to just exit them back to the shell.

currently, no. but having a "nologin" flag or something (i'm relating
it to /etc/nologin) or "disabled" flag or something should be
doable...that way you'd get what you want...a successful login, the
motd, and then an exit. i'll add this to my todo list (the "i'd like
this in before the next release" one).

Bryan
_______________________________________________
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.