Hi, > Am 08.11.2017 um 23:49 schrieb mark.berg...@uphs.upenn.edu: > > Scenario: > Interactive use of our cluster relies on qlogin. To limit long > idle login sessions and runaway processes, resource thresholds > for interactive jobs are set for s_rt, s_vmem and s_cpu to large > values (8hrs, 10GB, 15min), with the corresponding hard limits > being set even higher. The system-wide bash_profile traps SIGXCPU > and SIGUSR1 and sends the user a warning that they are approaching > a limit. > > Problem: > SIGXCPU is sent to the sshd process initiated by qlogin. This is not > trapped, causing the login session to close without warning. > > Requested enhancement: > Exempt the sshd initiated by qlogin from being sent any of the "soft" > resource quota signals.
You can setup a wrapper for the sshd: #!/bin/sh # Two single quotation marks trap '' xcpu usr1 exec /usr/sbin/sshd -i This results in an ignore mask for the sshd in its /proc/$PID/status: SigIgn: 0000000000801200 while being without this wrapper: SigIgn: 0000000000001000 But it's also sent to the Bash, hence there it should be in the .profile too to ignore the two signals I think. -- Reuti > > > -- > Mark Bergman voice: 215-746-4061 > > mark.berg...@uphs.upenn.edu fax: 215-614-0266 > https://www.cbica.upenn.edu/ > IT Technical Director, Center for Biomedical Image Computing and Analytics > Department of Radiology University of Pennsylvania > _______________________________________________ > SGE-discuss mailing list > SGE-discuss@liv.ac.uk > https://arc.liv.ac.uk/mailman/listinfo/sge-discuss > _______________________________________________ SGE-discuss mailing list SGE-discuss@liv.ac.uk https://arc.liv.ac.uk/mailman/listinfo/sge-discuss