Bug 727470

Summary: rsyslog cannot stop all daemon after restart
Product: [Fedora] Fedora Reporter: Hongqing Yang <hoyang>
Component: rsyslogAssignee: Tomas Heinrich <theinric>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 15CC: pvrabec, theinric
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-08-09 09:33:58 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
analog none

Description Hongqing Yang 2011-08-02 08:33:05 UTC
Description of problem:
rsyslog and virtio is used to transfer installation logs from guest to host, please refer http://fedoraproject.org/wiki/Anaconda/Logging

a rsyslog daemon is started to listen on port 6080, but after rsyslog is restarted, it still listens on port 6080


Version-Release number of selected component (if applicable):
rsyslog-5.8.2-1.fc15.x86_64

How reproducible:
100%

Steps to Reproduce:
1. start rsyslog
2. rsyslog listens on port 6080
3. restart rsyslog
4. check ps -aux |grep rsyslog
  
Actual results:
rsyslog still listens on port 6080

Expected results:
rsyslog stops listening on port 6080

Additional info:

Comment 1 Tomas Heinrich 2011-08-02 13:03:50 UTC
(In reply to comment #0)
> Steps to Reproduce:
> 1. start rsyslog
> 2. rsyslog listens on port 6080
> 3. restart rsyslog
> 4. check ps -aux |grep rsyslog

Could you please describe these steps in more detail?

Comment 2 Hongqing Yang 2011-08-04 06:14:32 UTC
Created attachment 516615 [details]
analog

Comment 3 Hongqing Yang 2011-08-04 06:16:03 UTC
the details are described as http://fedoraproject.org/wiki/Anaconda/Logging
1. start rsyslog service
2. run rsyslog template, this can be found at the attachment
   eval `./analog -p 6080 -s -o .rsyslogd.conf /tmp/autoqa/log`
3. restart or stop rsyslog
4. check ps -aux |grep rsyslog

root     27924  0.0  0.0 177576  3736 ?        Sl   13:54   0:00 /sbin/rsyslogd -c 4 -f /autoqa/tests/upgrade/.rsyslogd.conf -i /tmp/root/rsyslogd_6080.pid
root     30580  0.0  0.0 109100   832 pts/0    S+   14:13   0:00 grep --color=auto rsyslog


we can find rsyslog still listens on port 6080, This is stopped on Fedora 14

Comment 4 Tomas Heinrich 2011-08-08 11:56:36 UTC
(In reply to comment #3)
> the details are described as http://fedoraproject.org/wiki/Anaconda/Logging
<...>
> we can find rsyslog still listens on port 6080, This is stopped on Fedora 14

I'd say that it is a better behavior for the service not to interfere with rsyslogd processes not spawned by it, though this might differ from f14. It might be useful if the analog script run the daemon in the foreground or printed its PID to make stopping of the daemon simpler.

This doesn't really seem to be a bug in the rsyslog package.

Comment 5 Hongqing Yang 2011-08-09 09:33:58 UTC
(In reply to comment #4)
> (In reply to comment #3)
> > the details are described as http://fedoraproject.org/wiki/Anaconda/Logging
> <...>
> > we can find rsyslog still listens on port 6080, This is stopped on Fedora 14
> 
> I'd say that it is a better behavior for the service not to interfere with
> rsyslogd processes not spawned by it, though this might differ from f14. It
> might be useful if the analog script run the daemon in the foreground or
> printed its PID to make stopping of the daemon simpler.
> 
> This doesn't really seem to be a bug in the rsyslog package.

OK, I will take that as workaround. Thanks