Wow that was WAY easy. Thank you for the recommendation!
Here is essentially what I did to install it and configure it.
[FONT=‘Courier New’]apt install supervisor[/FONT]
[FONT=‘Courier New’]cd /etc/supervisor/
nano supervisord.conf[/FONT]
Below are the default contents of supervisord.conf. Minimal changes were necessary. I opted to try out the web interface and it was a breeze to configure by just removing the comment marks and changing the username and password to what I wanted.
[FONT=‘Courier New’][[/FONT]unix_http_server]
file=/tmp/supervisor.sock ; the path to the socket file
chmod=0700 ; socket file mode (default 0700)
[inet_http_server] ; inet (TCP) server disabled by default
port=ipaddress:9001 ; ip_address:port specifier, *:port for all iface
username=user ; default is no username (open server)
password=123 ; default is no password (open server)
[supervisord]
logfile=/var/log/supervisor/supervisord.log ; main log file
pidfile=/var/run/supervisord.pid ; supervisord pidfile
childlogdir=/var/log/supervisor ; ‘AUTO’ child log dir
[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
[supervisorctl]
serverurl=unix:///var/run/supervisor.sock ; user a unix:// URL for a unix socket
[FONT=‘Courier New’][include]
files = /etc/supervisor/conf.d/*.conf[/FONT]
Next I had to create two custom configuration files inside the conf.d folder, one for authserver and the other for worldserver as outlined in the supervisord.conf include instructions
[FONT=‘Courier New’]cd conf.d
nano authserver.conf[/FONT]
Paste this into nano or your text editor
[FONT=‘Courier New’][[/FONT]program:authserver]
directory=/home/trinitycore/server/bin/
command=/home/trinitycore/server/bin/authserver
autostart=true
autorestart=true
startretries=3
stopasgroup=true
Save the file as authserver.conf
[FONT=‘Courier New’]cp authserver.conf worldserver.conf[/FONT]
[FONT=‘Courier New’]nano worldserver.conf[/FONT]
Simply change the two instances of “authserver” to “worldserver” and save the file
[FONT=‘Courier New’]systemctl restart supervisor
supervisorctl status all[/FONT]
Your servers should be starting as immediately as you restarted supervisor.
Now all you have to do is open your browser and go to http://yourip:9001 and you can check the status of, and start, stop, and restart your servers with the click of a button.
[ATTACH]2471._xfImport[/ATTACH]