Screen staying alive after ctrl+c-ing its initial task
Andrey Utkin <[email protected]>
| Newsgroups | gmane.comp.gnu.screen.user |
|---|---|
| Message-ID | <CANZNk83P-_sC=wDuY99X3-9y3hP6q2bYT4MNEaWDTvpRqinHzw@mail.gmail.com> |
1. I use screen for running service processes, so i start them detached (-d -m) 2. I want a screen to stay around even after service scrpit has exited, so now i do screen -d -m -S instance_name bash -c "daemon.sh; bash -i" & this works as desired 3. I tried to interrupt such script process with Ctrl+C while attached to its screen. Surprisingly, i haven't got bash prompt after that, but screen is terminated. What can i do to get prompt again, to have chance to restart the script? This seem natural use-case for screen to me, i am surprised not to find any command line flags for it. Any help, advice or criticism are appreciated. -- Andrey Utkin