In case this helps anyone...
I'm running Arch Linux with the Bitnami Nodejs stack installed as root. My Arch Linux uses systemd start up scripts. Here's how I got the stack to autostart on boot.
- Put the file bitnami.service into /etc/systemd/system (file contents below).
- Ran "systemctl enable bitnami.service" at the command line.
This is not yet well tested and note that I'm a newbie and this is my first systemd startup script.
bitnami.service:
[Unit]
Description=Bitnami Nodejs server
After=syslog.target
After=network.target
[Service]
Type=forking
User=root
ExecStart=/opt/nodejs-0.10.5-0/ctlscript.sh start
# Give a reasonable amount of time for the server to start up/shut down
TimeoutSec=30
[Install]
WantedBy=multi-user.target