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
Need to update dirsrv.systemd file #1994
Comments
Comment from mreynolds (@mreynolds389) at 2016-07-27 01:37:43 attachment |
Comment from nhosoi (@nhosoi) at 2016-07-27 01:45:11 I just would like to learn how the new value 10 min works. I remember we fixed a ticket to shorten the timeout in the startup script which prevented to quit when, e.g., some selinux error occurred. If this change does not bring back the problem, you have my ack. :) |
Comment from mreynolds (@mreynolds389) at 2016-07-27 02:01:55 Replying to [comment:2 nhosoi]:
This is just sets the timeout when "starting" a service using systemctl
We found this issue when valgrind was misbehaving. While the real issue had to do with another systemd setting(NotifyAccess), I thought we should make the timeouts consistent since we were updating the systemd file. Now there is a timeout of 10 minutes in the start-dirsrv script when waiting for a PID file to be written, but perhaps this is obsolete(including the 10 minute timeout). If I'm correct the pid file is written before we return success/failure. If this timeout was erroneous to begin with, then what is a good timeout? How long do we wait if a database is being recovered? 90 seconds seems too short in my opinion.
Do you have the steps to reproduce the selinux issue? |
Comment from nhosoi (@nhosoi) at 2016-07-27 02:28:53 I think this ticket and the fix mentioned in this ticket was in my mind. https://fedorahosted.org/389/ticket/48336
|
Comment from mreynolds (@mreynolds389) at 2016-07-27 02:47:16 Replying to [comment:4 nhosoi]:
Ahh, this is completely different. This issue (ticket 48336) happens internal to DS - it has nothing to do with the systemctl timeout. I also just verified there is no regression with 48336. Anyway, I leave my patch as it stands (with the 10min timeout). |
Comment from nhosoi (@nhosoi) at 2016-07-27 02:50:08 Thank you for your confirmation! |
Comment from mreynolds (@mreynolds389) at 2016-07-27 02:58:57 Thanks Noriko! 1972195..ce44176 master -> master |
Comment from mreynolds (@mreynolds389) at 2016-07-27 03:00:42 This also impacts 1.3.4 c8e7fc5..5e810f8 389-ds-base-1.3.4 -> 389-ds-base-1.3.4 |
Comment from nhosoi (@nhosoi) at 2017-02-11 23:07:52 Metadata Update from @nhosoi:
|
Comment from vashirov (@vashirov) at 2020-02-12 17:49:31 Metadata Update from @vashirov:
|
Cloned from Pagure issue: https://pagure.io/389-ds-base/issue/48935
If using systemd, it does not honor the default timeout in the start script of 10 minutes. The default timeout for systemd services is 90 seconds.
Also on Fedora 23+ valgrind doesn't interact well with systemd anymore.
Need to add these lines to /etc/sysconfig/dirsrv.systemd:
The text was updated successfully, but these errors were encountered: