Gucamole-trigger is a plugin for guacamole that makes it possible to start and stop you remote desktop on demand. You can wright you own scripts that fits your environment.
Now gucamole-trigger settings apply to all connections.
But you might want only use this plugin on some connections.
Or have different command for different connections.
This is easy to do for default authentication via user-mappings.xml.
But have to find out you can make it so you can also set it via mysql/posgress etc authentication
// those will become zombie process in linux if they finish
process.destroyForcibly ();
But this wont kill children of this process, end if child proces exists when its parent is killed.
Java wont reap it so it can becomes a zombie proces.