Having a fiddle with this today.
As far as building a RPM the tricky bit is handling nodejs
For the moment I am looking at a manual install of node first, followed my the rpm which will take care of most of the rest and add some configurability.
Couple of things.
First is I cannot modify the installer.js as per the wiki. The forever service seems to install happily but......
And then this happens:
sed -i -e 's/(Oracle Linux)/(Oracle Linux)|(SME Server)/' \
/opt/rh/nodejs010/root/usr/lib/node_modules/forever-service/templates/sysvinit/installer.js
sed: can't read /opt/rh/nodejs010/root/usr/lib/node_modules/forever-service/templates/sysvinit/installer.js: No such file or directory
As a result I cannot see the startup script that it generates - I was wondering if it would be simpler to use our own (the forever service may not then be required) which could also then be modified as a template.
Any hints or tips ?