On exit ksh kills all the processes running in the session, including processes started using "nohup"
Issue
-
Starting processes using
nohup
doesn't prevent ksh from killing them when the session exits, as shown in the example below$ cat test.sh #!/bin/sh watch -n 30 tail -f $0 $ nohup ./test.sh & [1] 2233 nohup: ignoring input and appending output to 'nohup.out' $ exit You have running jobs $ exit --> "watch" and "tail" processes are dead
-
Exiting the shell requires typing "exit" twice and ksh complains with message "You are running jobs"
Environment
- Red Hat Enterprise Linux 8 and later
- ksh
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.