Search code examples
javascriptnode.jslinuxdaemonsystemd

How to run exec in binary nodejs App running as a Daemon in Linux?


I have a nodejs App.When i start the App from CLI with nodejs app.js all works fine, but if the App runns as a daemon the exec command inside app don't works.


Solution

  • How are you running your app as a daemon? You can check the forever tool for that via npm, which will handle exec commands as supposed.