Bug 113591 - killproc doesn't kill rsync daemon
Summary: killproc doesn't kill rsync daemon
Status: RESOLVED WORKSFORME
Alias: None
Product: openSUSE 11.0
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: Final
Hardware: x86-64 openSUSE 11.0
: P5 - None : Major (vote)
Target Milestone: Future/Later
Assignee: E-mail List
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-27 22:48 UTC by Lars Müller
Modified: 2009-06-04 09:11 UTC (History)
2 users (show)

See Also:
Found By: Development
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lars Müller 2005-08-27 22:48:37 UTC
And this is only the case for the rsyncd.  Not for smbd or nmbd for example. 
This happens on an older P III 1.2 GHz system.

gab:~ # rcrsyncd status
Checking for rsync daemon:                                           running
gab:~ # rcrsyncd stop
Shutting down rsync daemon                                           done
gab:~ # rcrsyncd status
Checking for rsync daemon:                                           running
gab:~ # killproc -TERM /usr/sbin/rsyncd 
gab:~ # rcrsyncd status
Checking for rsync daemon:                                           running
gab:~ # pkill rsyncd
gab:~ # rcrsyncd status
Checking for rsync daemon:                                           unused
Comment 1 Lars Müller 2005-08-27 22:51:57 UTC
Also valid on a different system (AMD Athlon 900 MHz).  Both systems are running
10.0 Beta 3.
Comment 2 Thorsten Kukuk 2005-08-28 09:04:28 UTC
Update to stable.
Comment 3 Per Jessen 2009-06-04 07:26:51 UTC
I know this report is ancient, but I'm seeing exactly the same or at least a very similar problem today on my openSUSE 11.0 installation.  The problem, AFAICT, is caused by the 'startproc /usr/sbin/rsync --daemon' not writing a pidfile in /var/run/rsyncd.pid.  This is presumably due to rsyncd detaching itself from its parent, which means startproc has nothing to write to the pidfile. 

The result is that rsyncd can be started with rcrsyncd, but not stopped. 'rcrsyncd stop' says it has stopped rsyncd, but it hasn't.
Comment 4 Dr. Werner Fink 2009-06-04 09:11:56 UTC
startproc does not write pid files, this is the job of the daemon its self.
To stop a daemon simply use

      killproc /usr/sbin/rsyncd

and it will be stopped.  This is done in /etc/init.d/rsyncd.  If it does not
work the wrong binray is used.  Beside this on openSUSE 11.1 it works:

 # rcrsyncd start
 Starting rsync daemon                                   done
 # rcrsyncd status
 Checking for rsync daemon:                              running
 # rcrsyncd stop
 Shutting down rsync daemon                              done
 # rcrsyncd status
 Checking for rsync daemon:                              unused