I'm currently using node.js and pm2 to manage a Foundry VTT instance.
pm2 start ~/foundryvtt/resources/app/main.js --name "foundryvtt" -- --dataPath=/home/gabriel/foundrydata
# list all installed services pm2 list # start service pm2 start foundryvtt # stop service pm2 stop foundryvtt # disable and delete service pm2 delete foundryvtt