update_conserver.sh: stop/start conserver-server instead of reloading
Reloading always seems to leave the server disabled. Seems like a bug,
but I haven't spent anytime diagnosing it. For now, let's just stop/start
it so that it is reliable.
In labs that do not have a conserver, support connecting to IPMI BMCs
directly. Unlike conserver, IPMI SoL does not support multiple users
at the same time, so this also adds a "force" argument to the console
subcommand that will cause labkey to first disconnect any existing users.
labkey: Remove duplicate code, causing console to restart after exit
For the longest time I've been annoyed that I have to send console's
exit sequence (~.) twice to make it exit when called via labkey. I
just assumed there was some weird interaction between the labkey and
console process that caused it. Nope. I had literally just duplicated
the callout to console - presumably a debug cut & paste gone wrong.
Make parameter "-r" optional so, if not given, data will be read from
stdin. This allows the user to pipe data into the script and capture
the output with a single line: