Bug 566043
| Summary: | startpid file is only cleaned by initscript runs | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Directory Server | Reporter: | Yi Zhang <yzhang> | ||||
| Component: | Directory Server | Assignee: | Rich Megginson <rmeggins> | ||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Viktor Ashirov <vashirov> | ||||
| Severity: | low | Docs Contact: | |||||
| Priority: | low | ||||||
| Version: | 8.2 | CC: | jgalipea | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | All | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2016-05-06 14:35:45 UTC | Type: | --- | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Bug Depends On: | |||||||
| Bug Blocks: | 434914, 543590 | ||||||
| Attachments: |
|
||||||
Created attachment 404810 [details]
0001-Bug-566043-startpid-file-is-only-cleaned-by-initscri.patch
The start-dirsrv script has been modified to remove the startpid file if the server starts successfully.
To ssh://git.fedorahosted.org/git/389/ds.git 700ba89..a640bf6 Directory_Server_8_2_Branch -> Directory_Server_8_2_Branch commit a640bf6f589c915085be1de27e1261650ccb2528 Author: Endi S. Dewata <edewata> Date: Tue Mar 30 08:48:44 2010 -0500 e72f8af..0c9d459 master -> master commit 0c9d4590489066d2f8dc945c9749c429972e78a9 Author: Endi S. Dewata <edewata> Date: Tue Mar 30 08:48:44 2010 -0500 verified - RHEL 4
version:
redhat-ds-base-8.2.0-2010060704.el4dsrv
[root@jgalipea-rhel4 /]# ls /var/run/dirsrv/
admin-serv.cgisock admin-serv.pid slapd-jgalipea-rhel4.pid slapd-jgalipea-rhel4.stats
[root@jgalipea-rhel4 /]# service dirsrv stop
Shutting down dirsrv:
jgalipea-rhel4... [ OK ]
[root@jgalipea-rhel4 /]# ls /var/run/dirsrv/
admin-serv.cgisock admin-serv.pid
|
Description of problem: This is a minor issue. Based on my test, the file /var/run/dirsrv/slapd-<inst>.startpid file only being cleaned by initscript . It seems not cause any problem as far as I know. Version-Release number of selected component (if applicable): 8.2 9.0 How reproducible: always Steps to Reproduce: 1. install redhat-ds in a fresh machine 2. run setup-ds.pl to configure a new instance at this point, we can see three files unde /var/run/dirsrv/: (example is below) <qa>[root@mv64c-vm ~]# ls /var/run/dirsrv/ slapd-mv64c-vm.pid slapd-mv64c-vm.startpid slapd-mv64c-vm.stats 3. stop the server with : service dirsrv stop, we will see the startpid file left there: (example is below) <qa>[root@mv64c-vm ~]# service dirsrv stop Shutting down dirsrv: mv64c-vm... [ OK ] <qa>[root@mv64c-vm ~]# ls /var/run/dirsrv/ slapd-mv64c-vm.startpid 4. the startpid file will goes away when we start the server again (initscript runs and removes this file) <qa>[root@mv64c-vm ~]# service dirsrv start Starting dirsrv: mv64c-vm... [ OK ] <qa>[root@mv64c-vm ~]# ls /var/run/dirsrv/ slapd-mv64c-vm.pid slapd-mv64c-vm.stats Actual results: Expected results: Not a big deal, but it might confuse customer/user why there is such file there after server stops running. Additional info: