Host via pm2
Install pm2
npm install -g pm2
/yarn add --global pm2
Go into the root directory of
Lavalink.jar,
and execute the following
now on pm2 list
you can see the server (as well it's process ID)
with pm2 stop <ID>
you can stop it
with pm2 start <ID>
you can start it
on 4 Gigabyte
of memory usage, lavalink automatically stops and restart itsself
with pm2 delete <ID>
you can stop + delete the lavalink server process (not the directory)
What about the logs?
Pm2 has packages, to auto-rotate and auto-flush the logs to save storage!
I made that Pm2 + Linux Tutorial Cheatsheet, if you ever need it!
Last updated