Use with systemd - nodenv/nodenv GitHub Wiki

See issue #117 for a previous discussion.

Create a systemd service for a nodejs app using nodenv

Quick tip: in general use ExecStart=/home/user/.nodenv/bin/nodenv exec npm xxx instead of ExecStart=npm xxx (idem for node) and don't forget to set User= with the user owning the nodenv installation and WorkingDirectory= if nodenv node version was set locally because nodenv is not installed globally.