ssbc / ssb-server

The gossip and replication server for Secure Scuttlebutt - a distributed social network
1.69k stars 164 forks source link

Daemonized server #254

Closed pfrazee closed 8 years ago

pfrazee commented 9 years ago
  1. The sbot server command should spawn as a background daemon by default.
  2. Running as a foreground process should be a flag on the server command (eg --fg).
  3. There should also be a command for connecting to the server and outputting the log.
  4. The server command should have a flag for spawning the background daemon in the background, then spawning a logger-output process in the foreground (eg --log).
bcomnes commented 8 years ago

Can we not just let systemd handle demonization? The most direct way to do that is to have the bin start a server that logs to stdout/err and write a systemd service file. It monitors the process for crashes, collects logging from stdout/err and lets you start it in the correct context with the correct read/write permissions.

pfrazee commented 8 years ago

Yeah this never really picked up steam, I say we dont worry about it

bcomnes commented 8 years ago

I'll PR some example service file stuff I've its polished.