@dogs This looks kind of cool. Lord knows I am not a fan of systemd but it seems like the most practical choice for NodeBB startup/restart under systemd based systems. Which is pretty much all Linux nowadays. Yeah, I get void, alpine and gentoo exist.
Other systems, however.... Seems like this pm2 could be a nice win over trad rc scripts.
Or just use something Illumos based and SMF. Maybe Tribblix or Hipster? Oh... snap.... too many folks nowadays favor writing unportable software in the name of "efficiency". Others may just call it lazyness....
In any case, nice find. 👍