-
Notifications
You must be signed in to change notification settings - Fork 71
Make PARSEC a daemon #35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
logging to stdout is the normal way for daemons to run now; systemd or whatever will handle redirecting logs to wherever, so it is not necessary to change that. We should have a clean shutdown. |
Agree to both points. There seems to be two kinds of daemons:
I am mostly inclined to follow the modern, systemd, process of daemonization and I see for that the following tasks:
Separate but linked tasks:
Note: systemd is a Linux only daemon manager, which is not on MacOS. The service will need to have OS dependant ( Ressources: simple description, daemon man page, types of services, Go example |
The points above seem good, but I have a few questions/points:
|
Agree to all points. |
CC @paulhowardarm for your information |
PARSEC should run as a daemon, running fully as a background process. Its logs should go at a convenient place and not on the standard output.
It should be possible to gracefully terminate it and wait for all of its threads to finish.
The text was updated successfully, but these errors were encountered: