Closed pfrazee closed 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.
Yeah this never really picked up steam, I say we dont worry about it
I'll PR some example service file stuff I've its polished.
sbot server
command should spawn as a background daemon by default.server
command (eg--fg
).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
).