The core script runner to control any server which has Virtualmin and Phusion Passenger boot together. To be used to control a server booted with DOM Cloud Docker Instance.
Note: You can't put this service under Phusion Passenger because it will be killed during NginX reconfiguration so please use instruction below to run it under pm2.
git clone https://github.com/domcloud/dom-next-rootkit/ .- Run init script
sh ./tools-init.sh - Paste the final message to root user (so sudoutil.js can be run as root)
npx pm2 start app.js && npx pm2 save- Paste the final message to root user (so the app.js can be run as daemon)
- Put
tools-init.nginx.confto NGINX config. Adjust accordingly.