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

How do I achieve the equivalent of nohup ... & ? #734

Open
agardnerIT opened this issue Jan 29, 2025 · 0 comments
Open

How do I achieve the equivalent of nohup ... & ? #734

agardnerIT opened this issue Jan 29, 2025 · 0 comments

Comments

@agardnerIT
Copy link

I have a cell (escaping is just to keep GitHub issues happy):

   \`\`\` {"name": "run otel collector", "background": "true" }
   /workspaces/$RepositoryName/dynatrace-otel-collector --config=/workspaces/$RepositoryName/config.yaml
   \`\`\`

Effectively, I want the CLI to run the equivalent of:

nohup /workspaces/$RepositoryName/dynatrace-otel-collector --config=/workspaces/$RepositoryName/config.yaml &

Is this possible?

I've tried the following:

  • runme run --background "run otel collector"
  • runme run --background=true "run otel collector"
  • runme run --background="true" run otel collector"

It runs but it's always "foreground" or "interactive". FWIW I've also tried "background": true in the JSON (if a bool matters?)

$ runme run --background="true" "run otel collector"
2025-01-29T07:03:29.863Z        info    [email protected]/service.go:116 Setting up own telemetry...
2025-01-29T07:03:29.863Z        info    [email protected]/telemetry.go:96        Serving metrics {"address": ":8888", "metrics level": "Normal"}
2025-01-29T07:03:29.864Z        info    [email protected]/builder.go:85 Development component. May change in the future.        {"kind": "exporter", "data_type": "logs", "name": "debug"}
2025-01-29T07:03:29.865Z        info    [email protected]/service.go:195 Starting dynatrace-otel-collector...    {"Version": "0.12.0", "NumCPU": 2}
2025-01-29T07:03:29.865Z        info    extensions/extensions.go:36     Starting extensions...
2025-01-29T07:03:29.865Z        info    adapter/receiver.go:46  Starting stanza receiver        {"kind": "receiver", "name": "syslog", "data_type": "logs"}
2025-01-29T07:03:29.866Z        info    [email protected]/service.go:221 Everything is ready. Begin running and processing data.
2025-01-29T07:03:29.866Z        info    localhostgate/featuregate.go:63 The default endpoints for all servers in components have changed to use localhost instead of 0.0.0.0. Disable the feature gate to temporarily revert to the previous default.   {"feature gate ID": "component.UseLocalHostAsDefaultHost"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant