-
Notifications
You must be signed in to change notification settings - Fork 299
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a short sleep to tail of postStartCommand #8536
Comments
Spawning the background process after nohup bash -c '.devcontainer/postStartBackground.sh &' > ".dev_container_logs/postStartBackground.out" Could you give that a try? |
I'm sure that works, but it isn't really the point of this suggestion. If someone does background the nohup (or any other process) as the last command, there isn't a linter or anything to help them out, and it's easy to do. Likewise, it's difficult to reproduce since things run fine from within a user shell. A good UX is preventing user errors. |
This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 10 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation. Happy Coding! |
This feature request has not yet received the 10 community upvotes it takes to make to our backlog. 10 days to go. To learn more about how we handle feature requests, please see our documentation. Happy Coding |
🙁 In the last 60 days, this feature request has received less than 10 community upvotes and we closed it. Still a big Thank You to you for taking the time to create this issue! To learn more about how we handle feature requests, please see our documentation. Happy Coding! |
The
postStartCommand
will execute the given command and then the parent process will abruptly terminate. This creates issues with executing background tasks. Take this bash script that is executed for example:What behavior would you expect to happen here?
What does happen is that
postStartBackground.out
is created, but nothing is actually executed. The workaround is to add a sleep at the end of the script. My suggestion is to wrap thepostStartCommand
such that it also gives time for any background programs to execute.The text was updated successfully, but these errors were encountered: