bhj / KaraokeEternal

Open karaoke party system
https://www.karaoke-eternal.com
ISC License
460 stars 70 forks source link

Daemonize #16

Closed csjjpm closed 3 years ago

csjjpm commented 4 years ago

Hi, I've install it into a jail on my freebsd and it works brilliantly. When I close my jail the server stops. I've tried to install a symlink rc.d to make it as a service but I get an error env: node: no such file or directory

Any idea how I can make it a background service which doesn't stop when I close the console?

Also can I stop it form changing the port number everytime I start the server? thanks Paul

bhj commented 4 years ago

Hey Paul, thanks for the feedback. Are you trying something similar to this thread where it's a PATH issue for some reason (see the last comment)? The server script is at server/main.js.

The web server port can (currently) only be set from the CLI using -p <number> or --port <number>.

bhj commented 4 years ago

Hey @csjjpm, looking at this again I'm still not sure about the node path issue, but am definitely open to improving running as a service. Right now it's left up to the user if they want to daemonize or maybe containerize it. Leaving open to collect better options. Thanks!

bhj commented 3 years ago

I think the ultimate solution to this is going to be very OS-dependent so closing this for now. Keeping the server port constant between runs is currently on the roadmap. Thanks!