Adding daemonization to swift service lifecycle

Hi,

Hope I’m putting this in the proper forum even if it is just a small improvement.

Just wanted to check peoples thoughts on adding proper daemonization to the swift service lifecycle framework?

I added:
https://github.com/swift-server/swift-service-lifecycle/issues/80

It would seem a natural fit for “proper” backend services and seems to be missing AFAICT?

Usually one would at least block signals (to ensure they will be delivered to signal handler thread only), fork() and redirect stdin/out/err to /dev/null etc.

Cheers,

Joakim

thanks for bringing it up @hassila - sounds potentially interesting. we can discuss more here or over at the GitHub issue

Thanks, will follow up at GitHub then to keep discussion localised in case it turns up as a PR, easier to track history background then.

2 Likes