[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Screen staying alive after ctrl+c-ing its initial task
From: |
Andrey Utkin |
Subject: |
Screen staying alive after ctrl+c-ing its initial task |
Date: |
Tue, 22 Jan 2013 05:06:31 +0200 |
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
- Screen staying alive after ctrl+c-ing its initial task,
Andrey Utkin <=