Mailing List Archive

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
Re: message and exit [ In reply to ]
On Wed, Mar 08, 2006 at 03:43PM +0000, gregtillman@comcast.net 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@jdwhite.org> Jabber: jdwhite(jabber.org)
http://www.jdwhite.org/~jdwhite jason.d.white(gmail.com)
PGP KeyID: 0x5290E477
_______________________________________________
users mailing list
users@conserver.com
https://www.conserver.com/mailman/listinfo/users
Re: message and exit [ In reply to ]
On Wed, Mar 08, 2006 at 03:43:34PM +0000, gregtillman@comcast.net 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@conserver.com
https://www.conserver.com/mailman/listinfo/users