Skip to content
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

[FIX] Let systemd/journalctl handles the logs by default + new variable 'odoo_logfile'... #79

Merged
merged 2 commits into from
Mar 19, 2018

Conversation

sebalix
Copy link
Collaborator

@sebalix sebalix commented Mar 15, 2018

… for other init systems (log files are then managed by Odoo itself).
If the operator wants Odoo to handle the log files while using systemd, the value of odoo_logfile can be set as any other role variable and the --logfile Odoo parameter will be configured in the systemd unit file.
And fix the Buildout systemd unit service to be coherent with pip and standard service unit files.

The first commit change the way we access logs by default if systemd is used: logs have to be read with the journalctl tool.

The second one has been copied from the upstream Odoo unit file (odoo/odoo@ee753bf) to avoid killing Odoo and all its workers instantly when stopping the service, and instead let the process finishes its tasks before exiting.

sebalix added 2 commits March 15, 2018 16:03
…le 'odoo_logfile' for other init systems (log files are then managed by Odoo itself). If the operator wants Odoo to handles the log files while using systemd, the value of 'odoo_logfile' can be set and the '--logfile' Odoo parameter will be configured.
@sebalix sebalix requested a review from mmequignon March 16, 2018 10:45
@JordiBForgeFlow JordiBForgeFlow merged commit e434f07 into OCA:master Mar 19, 2018
@sebalix
Copy link
Collaborator Author

sebalix commented Mar 19, 2018

@jbeficent thanks!

@sebalix sebalix deleted the fix/init_logfile branch March 19, 2018 11:14
@sebalix sebalix mentioned this pull request Aug 14, 2018
@sebalix sebalix removed the request for review from mmequignon August 14, 2018 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants