You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I am in process of writing bash files to get status of node apps running and start/stop them. There is a number of apps on my server.
Is there a cleaner way to get the "forever list" output?
My issue that parsing the "forever list" output is not 100% workable, as other people can move column order, etc. It makes a reliable parsing a big pain. Is there a way to get the data about what is currently running in json format or something that won't change based on someone's customization (like having different column order or hiding/showing columns)?
The text was updated successfully, but these errors were encountered:
Ultimately forever is used to place a process into the background -- allowing any established PTY/TTY device to hang-up without also destroying the process (a good ol' daemon process).
You could use a daemon-manager to orchestrate control; daemon-managers are going to be dependent upon operating systems.
Commonly, sysctl, systemctl, initctl, systemd are found on various linux flavors. Configuring what is called a "service" or Unit File is rather straight forward.
Now, for ExecStart commands, instead of running the full path to npm, you'd instead provide the full path to forever -- followed with any flags and additional full-system paths as input. Run command -v forever to get that location.
Hello, I am in process of writing bash files to get status of node apps running and start/stop them. There is a number of apps on my server.
Is there a cleaner way to get the "forever list" output?
My issue that parsing the "forever list" output is not 100% workable, as other people can move column order, etc. It makes a reliable parsing a big pain. Is there a way to get the data about what is currently running in json format or something that won't change based on someone's customization (like having different column order or hiding/showing columns)?
The text was updated successfully, but these errors were encountered: