| Summary: | Systemd unit uses wrong pid path | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Alexander Bokovoy <abokovoy> |
| Component: | krb5 | Assignee: | Nalin Dahyabhai <nalin> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | urgent | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 16 | CC: | nalin |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | krb5-1.9.1-15.fc16 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-10-11 03:15:04 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Bug Depends On: | |||
| Bug Blocks: | 699785, 720976 | ||
|
Description
Alexander Bokovoy
2011-09-21 21:22:47 UTC
Blocks bug 699785 krb5-1.9.1-14.fc16 has been submitted as an update for Fedora 16. https://admin.fedoraproject.org/updates/krb5-1.9.1-14.fc16 Package krb5-1.9.1-14.fc16: * should fix your issue, * was pushed to the Fedora 16 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing krb5-1.9.1-14.fc16' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/krb5-1.9.1-14.fc16 then log in and leave karma (feedback). Unfortunately, this update does not work. ------------------------------------------------------- [Unit] Description=Kerberos 5 Servers After=syslog.target network.target [Service] Type=forking PIDFile=/var/run/krb5kdc.pid EnvironmentFile=-/etc/sysconfig/krb5kdc ExecStart=/usr/sbin/krb5kdc -r $KRB5REALM -P $pidfile $KRB5KDC_ARGS ExecReload=/bin/kill -HUP $MAINPID [Install] WantedBy=multi-user.target ------------------------------------------------------- $pidfile references wrong variable as $PIDFile is different from $pidfile. $pidfile is empty. As result, krb5kdc complains in the syslog: Oct 1 10:05:57 host4 krb5kdc[10629]: krb5kdc: option requires an argument -- 'P' Oct 1 10:05:57 host4 krb5kdc[10629]: usage: krb5kdc [-x db_args]* [-d dbpathname] [-r dbrealmname] Oct 1 10:05:57 host4 krb5kdc[10629]: [-R replaycachename] [-m] [-k masterenctype] Oct 1 10:05:57 host4 krb5kdc[10629]: [-M masterkeyname] [-p port] [-P pid_file] Oct 1 10:05:57 host4 krb5kdc[10629]: [-n] [-w numworkers] [/] Oct 1 10:05:57 host4 krb5kdc[10629]: where, Oct 1 10:05:57 host4 krb5kdc[10629]: [-x db_args]* - Any number of database specific arguments. Oct 1 10:05:57 host4 krb5kdc[10629]: Look at each database module documentation for supported Oct 1 10:05:57 host4 krb5kdc[10629]: arguments Oct 1 10:05:57 host4 systemd[1]: krb5kdc.service: control process exited, code=exited status=1 Oct 1 10:05:57 host4 systemd[1]: Unit krb5kdc.service entered failed state. and refuses to start. Was there any attempt to test before submitting the package? Moving back to NEW state. Checked with #systemd IRC folks and there is no way to refer via $PIDFile or $pidfile to PIDFile= stanza.
You have to specify the path directly in ExecStart stanza. The following krb5kdc.service works for me with FreeIPA systemd support I'm developing:
[Unit]
Description=Kerberos 5 Servers
After=syslog.target network.target
[Service]
Type=forking
PIDFile=/var/run/krb5kdc.pid
EnvironmentFile=-/etc/sysconfig/krb5kdc
ExecStart=/usr/sbin/krb5kdc -r ${KRB5REALM} -P /var/run/krb5kdc.pid ${KRB5KDC_ARGS}
ExecReload=/bin/kill -HUP ${MAINPID}
[Install]
WantedBy=multi-user.target
krb5-1.9.1-15.fc16 has been submitted as an update for Fedora 16. https://admin.fedoraproject.org/updates/krb5-1.9.1-15.fc16 Works now. Thanks! Package krb5-1.9.1-15.fc16: * should fix your issue, * was pushed to the Fedora 16 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing krb5-1.9.1-15.fc16' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/krb5-1.9.1-15.fc16 then log in and leave karma (feedback). krb5-1.9.1-15.fc16 has been pushed to the Fedora 16 stable repository. If problems still persist, please make note of it in this bug report. |