Results 1 to 7 of 7

Thread: << jobs killed automatically >>

  1. #1

    Default << jobs killed automatically >>

    Hello, I am submitting jobs in background using &. If I keep the shell opened, the jobs keep running, but if I close the shell, the jobs are killed. I am submitting the jobs as follow: 1- login into a server S1 with NIS and NFS (this server is just for login and file share), 2- from S1, login into server S2. In S2 we have the computational software installed and it's were the jobs will be run, 3- run the calculations in background, adding & at the end of the command in the prompt. 4- logout from S2 5- logout from S1 Is this a linux problem or could be related with the software (MOPAC) I am using to run the jobs? Thanks Hatuey

  2. #2
    Join Date
    Aug 2010
    Location
    Chicago suburbs
    Posts
    12,345
    Blog Entries
    3

    Default Re: << jobs killed automatically >>

    It's hard to guess from that.

    One possibility is that they are being sent a SIGHUP signal. Have you tried running them with "nohup"?
    openSUSE Leap 15.1; KDE Plasma 5;

  3. #3

    Default Re: << jobs killed automatically >>

    Quote Originally Posted by nrickert View Post
    It's hard to guess from that.

    One possibility is that they are being sent a SIGHUP signal. Have you tried running them with "nohup"?
    I will try.

    Thanks.

  4. #4
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    24,851

    Default Re: << jobs killed automatically >>

    I have a vague feeling in my memory that somebody decided that it is better to kill background jobs when the originating session logs out. Excactly what you describe. (don't ask me what the arguments are to change this after tens of years of it being as you and I expect it to work).

    The stupid thing about vague feelings is that I do not know where to find the information and thus where to find how to undo this setting. Some Googling needed?
    Henk van Velden

  5. #5
    Join Date
    Nov 2009
    Location
    West Virginia Sector 13
    Posts
    15,646

    Default Re: << jobs killed automatically >>

    Systemd maybe it has a strict parent child structure???

  6. #6
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    24,851

    Default Re: << jobs killed automatically >>

    I found this one: https://serverfault.com/questions/11...ontinue-to-run
    Did not read or check, but it may help you.

    BTW, while systemd is a beast with many feet, I doubt it has anything to do with this.
    Henk van Velden

  7. #7

    Default Re: << jobs killed automatically >>

    Thank you @gogalthorp and @hcvv

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •