How to run sample Node.js App startup mLinux?

Home Forums Conduit: mLinux Model How to run sample Node.js App startup mLinux?

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #12338
    Eduardo Avelar
    Participant

    How to run sample Node.js App automatically startup mLinux?

    #12343
    Jason Reiss
    Keymaster

    You can use update-rc.d to install a script to run at startup.

    https://www.debian-administration.org/article/28/Making_scripts_run_at_boot_time_with_Debian

    #12344
    Jeff Hatch
    Keymaster

    Eduardo,

    To start an app automatically on boot you can write an init.d script. There are several examples of these types of scripts that start various programs on boot in the /etc/init.d directory. Once you have created your script to start/stop/restart your Node.js App, you can create a soft link in the /etc/rc*.d directory/directories to your start script. Usually the typical run level is run level 5, so you would want to add your soft link to the /etc/rc5.d directory.

    Jeff

    #12551
    Eduardo Avelar
    Participant

    Thanks to both, here the solution:

    Repository script
    https://github.com/eavelardev/node-startup

    #13646
    Matthew Way
    Participant

    @Jeff Thanks for the solution, works well.

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.