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

CHILD: Pass information about logger to children #441

Closed
wants to merge 3 commits into from

Conversation

lslebodn
Copy link
Contributor

@lslebodn lslebodn commented Nov 8, 2017

Variables debug_to_file or debug_to_stderr were not set
because back-end already user parameter --logger=%s.
And therefore logs were not sent to files.

It could only work in case of direct usage of --debug-to-files in back-end via
command configuration option.

Resolves:
https://pagure.io/SSSD/sssd/issue/3433

Lukas Slebodnik added 3 commits November 7, 2017 17:11
systemd[1]: [/usr/lib/systemd/system/sssd-ifp.service:9]
    Path '-@environment_file@' is not absolute, ignoring.

sh-4.2# systemctl cat sssd-ifp.service
 # /usr/lib/systemd/system/sssd-ifp.service
[Unit]
Description=SSSD IFP Service responder
Documentation=man:sssd-ifp(5)
After=sssd.service
BindsTo=sssd.service

[Service]
Environment=DEBUG_LOGGER=--logger=files
EnvironmentFile=-@environment_file@
Type=dbus
BusName=org.freedesktop.sssd.infopipe
ExecStart=/usr/libexec/sssd/sssd_ifp --uid 0 --gid 0 --dbus-activated ${DEBUG_LOGGER}

Resolves:
https://pagure.io/SSSD/sssd/issue/3433
SSSD can cleanup pid file in case of standard stopping of daemon.
It's done in function monitor_cleanup. However monitor does not have a
change to cleanup file in case of OOM or sending SIGKILL to monitor.

Even though PIDFile is not necessary for services with Type notify
we should let systemd to clean this file in unexpected situations.

Resolves:
https://pagure.io/SSSD/sssd/issue/3528
Variables debug_to_file or debug_to_stderr were not set
because back-end already user parameter --logger=%s.
And therefore logs were not sent to files.

It could only work in case of direct usage of --debug-to-files in back-end via
command configuration option.

Resolves:
https://pagure.io/SSSD/sssd/issue/3433
@fidencio
Copy link
Contributor

fidencio commented Nov 9, 2017

@lslebodn, although the "SYSTEMD: Clean pid file in corner cases" is not related to this series, I'm fine on having it pushed together.

Code-wise the patch looks good and I'm just waiting the results of downstream tests to ack the series.

@fidencio
Copy link
Contributor

Downstream tests have passed (I've ran the one responsible for finding the regression in the first place).

@fidencio
Copy link
Contributor

Just for the record: JobID: 2135562 Status: Completed Result: Pass

@lslebodn
Copy link
Contributor Author

master:

@lslebodn lslebodn closed this Nov 10, 2017
@lslebodn lslebodn deleted the logger_child branch November 10, 2017 13:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants