Skip to content

App running in background, reliably and debuggable #138

@scripting

Description

@scripting

I am working on a Node app that must:

  1. run in the background,

  2. disconnected from the terminal,

  3. survives the terminal window being closed,

  4. yet is easy to quit so I can run a new version.

The product will remain in active development at the same time it is deployed, for the foreseeable future.

It's running on Ubuntu 18.04.3 (LTS) x64 on digitalocean.com.

I am currently using nohup node appname.js & to launch the app, and killAll node, to terminate it, and the apps it launches.

This method seems pretty good. I am able to Control-C after launching the app and it keeps running in the background. It seems to survive closing the terminal and logging on again.

Curious to know what other devs think? What method do you use to launch and kill an app in the background when you're actively developing it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions