Bug 199045 - service restorecond stop fails
Summary: service restorecond stop fails
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: policycoreutils
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Ben Levenson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-07-16 13:53 UTC by Jay Cliburn
Modified: 2007-11-30 22:11 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2006-07-18 17:59:43 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Jay Cliburn 2006-07-16 13:53:40 UTC
Description of problem:
On logout of current rawhide, I notice restorecond fails to stop.  It also fails
to stop when issued the command 'service restorecond stop'.  This is because the
pid in /var/run/restorecond.pid is one less than the actual pid, so the
killproc() function in /etc/init.d/functions can't find the pid to kill.  

[root@osprey ~]# cat /var/run/restorecond.pid 
2302
[root@osprey ~]# ps -ef | grep restorecond | grep -v grep
root      2303     1  0 21:35 ?        00:00:00 /usr/sbin/restorecond

Hand editing /var/run/restorecond.pid to make the value match the running pid
results in a successful stop.  

One result of this problem is a new restorecond for every 'service
restorecond restart' invocation, since the 'stop' fails and the 'start'
succeeds.

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

How reproducible:
Every time.

Steps to Reproduce:
1. Run 'service restorecond stop'
2.
3.
  
Actual results:
[root@osprey ~]# service restorecond stop
Shutting down restorecond:                                 [FAILED]

Expected results:
[root@osprey ~]# service restorecond stop
Shutting down restorecond:                                 [OK]

Additional info:

Comment 1 Jay Cliburn 2006-07-17 00:28:47 UTC
I have no idea how I managed to generate two of these bug reports.  Please mark
199045 as a duplicate of 199044 (or vice versa).

Sorry.

Comment 2 Daniel Walsh 2006-07-17 13:32:37 UTC
Fixed in policycoreutils-1.30.17-4

Comment 3 Jay Cliburn 2006-07-17 14:37:31 UTC
Please ignore comment #1.  I'm a moron and I have visions of duplicate bugzillas
where there aren't any.  A new day brings fresh clarity.

Comment 4 Jay Cliburn 2006-07-18 14:05:29 UTC
Verified fixed for me.

[root@osprey ~]# rpm -q policycoreutils
policycoreutils-1.30.17-4
[root@osprey ~]# service restorecond restart
Shutting down restorecond:                                 [  OK  ]
Starting restorecond:                                      [  OK  ]
[root@osprey ~]# 

Thanks!



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