Skip to content
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

nohup not respected #1353

Open
Benjamin-Etheredge opened this issue Nov 3, 2024 · 0 comments
Open

nohup not respected #1353

Benjamin-Etheredge opened this issue Nov 3, 2024 · 0 comments
Labels

Comments

@Benjamin-Etheredge
Copy link

What happened?
Following a VSCode example, I found nohup & is not respected.

"postStartCommand": "nohup bash -c 'your-command-here &'" is used as an example of how to start a task in the background. This does not work with devpod. It will run in the foreground. If it is a long-running command, this will block the editor from launching

What did you expect to happen instead?
The command to be run in the background and not block execution.

How can we reproduce the bug? (as minimally and precisely as possible)
Add the following to a devcontainer.json

"postStartCommand": "nohup bash -c 'sleep 60 &'"

Local Environment:

  • DevPod Version: v0.5.21
  • Operating System: windows
  • ARCH of the OS: AMD64

DevPod Provider:

  • Local/remote provider: docker

Anything else we need to know?
If the output of the command is sent to /dev/null, it works as expected. This could be due to something malformed with the command, but it appears to run the command succesfully.
"postStartCommand": "nohup bash -c 'sleep 60 &' >/dev/null 2>&1"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant