Bug 727470 - rsyslog cannot stop all daemon after restart
Summary: rsyslog cannot stop all daemon after restart
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: rsyslog
Version: 15
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Tomas Heinrich
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-08-02 08:33 UTC by Hongqing Yang
Modified: 2016-09-20 04:50 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-08-09 09:33:58 UTC
Type: ---


Attachments (Terms of Use)
analog (7.92 KB, application/octet-stream)
2011-08-04 06:14 UTC, Hongqing Yang
no flags Details

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


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