NebulaServices / Nebula

a stunning and sleek web proxy with support for hundreds of popular sites.
https://docs.nebulaproxy.io/
261 stars 3.54k forks source link

Use a systemd service instead of nohup in advanced deployment documentation #109

Closed willuhmjs closed 6 months ago

willuhmjs commented 1 year ago

I suggest making a script that generates a systemd service to run the proxy automatically on startup. This is the more common approach to having a Node server run 24/7.

This issue deals with this page

ProgrammerIn-wonderland commented 1 year ago

SystemD would make the system require... Well systemD, recently I was thinking about changing the guide to use PM2 instead though which would accomplish the same thing

ProgrammerIn-wonderland commented 1 year ago

Admittedly, using nohup was a quick solution to make it work on my system which at the time was running OpenRC Gentoo, (systemD less) and I didn't know how to make OpenRC services yet

willuhmjs commented 1 year ago

Whichever works on the most systems. Feel free to change the title of this issue to "use PM2" for tracking purposes.

CountBleck commented 1 year ago

I don't see why both/all options can be provided.

For ease of use, pm2 (as much as I personally would like to avoid it) is the best choice for the majority reading that docs page. pm2 supports starting itself on boot through an enabled systemd service. Power users can always write their own systemd service with ease.

By the way, "systemd", not "systemD".

ProgrammerIn-wonderland commented 1 year ago

Pedantic as ever blu

GreenyDEV commented 1 year ago

LOL true, true.

rifting commented 6 months ago

Closed as stale