Bug 859898

Summary: pdns daemon does not return exit code 0
Product: [Fedora] Fedora Reporter: Morten Stevens <ms>
Component: pdnsAssignee: Morten Stevens <ms>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 18CC: ms, ruben
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-10-15 12:36:14 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
PowerDNS Patch to return exit code 0 when stopping none

Description Morten Stevens 2012-09-24 11:05:58 UTC
Description of problem:

PowerDNS does not return exit code 0 when stopping the daemon.

Version-Release number of selected component (if applicable):

pdns-3.1-2.fc16
pdns-3.1-2.fc17
pdns-3.1-2.fc18
pdns-3.0.1-2.fc17
pdns-3.0.1-1.fc16

How reproducible:

Install pdns and stop the daemon.

[root@fc18 ~]# systemctl stop pdns.service
[root@fc18 ~]# cat /var/log/messages
...
Sep 20 19:58:44 fc18 pdns[604]: Scheduling exit on remote request
Sep 20 19:58:44 fc18 pdns_control[965]: Scheduling exit
Sep 20 19:58:44 fc18 pdns[604]: Guardian is killed, taking down children with us
Sep 20 19:58:44 fc18 systemd[1]: pdns.service: main process exited, code=exited, status=1
Sep 20 19:58:44 fc18 systemd[1]: Unit pdns.service entered failed state.

[root@fc18 ~]# systemctl status pdns.service
pdns.service - PDNS DNS Server
          Loaded: loaded (/usr/lib/systemd/system/pdns.service; enabled)
          Active: failed (Result: exit-code) since Thu, 20 Sep 2012 19:58:44 +0200; 2min 32s ago
         Process: 965 ExecStop=/usr/bin/pdns_control quit (code=exited, status=0/SUCCESS)
         Process: 592 ExecStart=/usr/sbin/pdns_server --daemon --guardian=yes (code=exited, status=0/SUCCESS)
        Main PID: 604 (code=exited, status=1/FAILURE)
          CGroup: name=systemd:/system/pdns.service 

Expected results:

exit code 0

Comment 1 Morten Stevens 2012-09-24 11:12:08 UTC
Created attachment 616478 [details]
PowerDNS Patch to return exit code 0 when stopping

After applying this patch, the pdns daemon returns exit code 0 when stopping

Comment 2 Fedora Update System 2012-09-24 18:35:40 UTC
pdns-3.1-3.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/FEDORA-2012-14435/pdns-3.1-3.fc16

Comment 3 Fedora Update System 2012-09-24 18:37:28 UTC
pdns-3.1-3.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/FEDORA-2012-14494/pdns-3.1-3.fc17

Comment 4 Fedora Update System 2012-09-24 22:09:54 UTC
pdns-3.1-4.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/pdns-3.1-4.fc18

Comment 5 Fedora Update System 2012-09-25 04:25:35 UTC
Package pdns-3.1-3.fc17:
* should fix your issue,
* was pushed to the Fedora 17 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing pdns-3.1-3.fc17'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-14494/pdns-3.1-3.fc17
then log in and leave karma (feedback).

Comment 6 Fedora Admin XMLRPC Client 2012-10-06 14:24:14 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 7 Morten Stevens 2012-10-15 12:36:14 UTC
Fixed in:

pdns-3.1-3.fc16
pdns-3.1-3.fc17
pdns-3.1-4.fc18