Bug 566043 - startpid file is only cleaned by initscript runs
Summary: startpid file is only cleaned by initscript runs
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Directory Server
Classification: Red Hat
Component: Directory Server
Version: 8.2
Hardware: All
OS: Linux
low
low
Target Milestone: ---
: ---
Assignee: Rich Megginson
QA Contact: Viktor Ashirov
URL:
Whiteboard:
Depends On:
Blocks: 434914 389_1.2.6
TreeView+ depends on / blocked
 
Reported: 2010-02-16 23:56 UTC by Yi Zhang
Modified: 2016-05-06 14:35 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-05-06 14:35:45 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
0001-Bug-566043-startpid-file-is-only-cleaned-by-initscri.patch (994 bytes, patch)
2010-04-07 00:01 UTC, Endi Sukma Dewata
rmeggins: review+
Details | Diff

Description Yi Zhang 2010-02-16 23:56:55 UTC
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:

Comment 2 Endi Sukma Dewata 2010-04-07 00:01:06 UTC
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.

Comment 3 Rich Megginson 2010-04-07 00:18:01 UTC
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

Comment 4 Jenny Severance 2010-06-07 19:20:17 UTC
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


Note You need to log in before you can comment on or make changes to this bug.