Hi Max, Understood, I see the points, I will add some options to allows you to deal with CTRL-D and logout (probably via etc/org.apache.karaf.shell.cfg configuration).
Regards JB On 06/06/2019 21:16, Max Spring wrote: > To give more context: In my Karaf I have potentially very long running > "background jobs". > I want to avoid that the user (which is a developer) terminates a > foreground Karaf and indirectly aborts these jobs by accident. > If I had the option of programmatically intercepting ctrl-d, I could ask > the user "are you sure to exit?" > > A 2nd best solution for me would be to disable ctrl-d completely. > I already implemented my own "q(uit)" Karaf command, so my command can > safeguard the termination. > > But then I would like to disable also the regular shell:logout command. > To be back at my original question :-) > > Regards, > -Max > > > On 6/3/19 2:57 AM, Jean-Baptiste Onofré wrote: >> Hi, >> >> You want to fully disable CTRL-D ? (and force "logout" usage instead) >> >> I can add an option to ssh for that. >> >> Regards >> JB >> >> On 03/06/2019 11:46, lichtin wrote: >>> I'm also interested to know how one can disable the Ctrl-D logout >>> behaviour? >>> >>> >>> >>> -- >>> Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html >>> >> -- Jean-Baptiste Onofré [email protected] http://blog.nanthrax.net Talend - http://www.talend.com
