i would like to use npm_lazy as a local for npm.
i installed npm_lazy and all works perfect.
starting the server using
npm_lazy --config ~/custom_config/npm_lazy.config.js
works.
but how can i add this command to the startup of the linux server. i am running Ubuntu 14.04.3 LTS.
i tried:
vi /etc/init.d/npm_lazy
chmod ugo+x /etc/init.d/npm_lazy
npm_lazy
#!/bin/sh
/path/to/my/script.sh
script.sh
#!/bin/sh
sudo npm_lazy --config ~/custom_config/npm_lazy.config.js
finally
update-rc.d npm_lazy defaults