Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 27277 - rsyncd init script does not works
Summary: rsyncd init script does not works
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: SpanKY
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-08-25 02:35 UTC by Cyril Pawelko
Modified: 2003-08-25 20:46 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
rsyncd.conf file with necessary information (rsyncd.conf,190 bytes, text/plain)
2003-08-25 03:07 UTC, Cyril Pawelko
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Cyril Pawelko 2003-08-25 02:35:45 UTC
/etc/init.d/rsyncd start works well
/etc/init.d/rsyncd stop returns an error

buck /root# /etc/init.d/rsyncd stop
 * Stopping rsyncd...
cat: /var/run/rsyncd.pid: Aucun fichier ou r
Comment 1 Cyril Pawelko 2003-08-25 02:35:45 UTC
/etc/init.d/rsyncd start works well
/etc/init.d/rsyncd stop returns an error

buck /root# /etc/init.d/rsyncd stop
 * Stopping rsyncd...
cat: /var/run/rsyncd.pid: Aucun fichier ou répertoire de ce type
kill: usage: kill [-s sigspec | -n signum | -sigspec] [pid | job]... or kill -l
[sigspec]                              [ !! ]

the init script does a 'kill `cat /var/run/rsyncd.pid`' to stop the rsync
deamon, but the pid file isn't created when the deamon starts.


Reproducible: Always
Steps to Reproduce:
1. Configure rsyncd (/etc/rsync and /etc/conf.d/rsynd)
2. Start rsyncd (/etc/init.d/rsyncd start)
3. Try to stop rsyncd (/etc/init.d/rsyncd stop)

Actual Results:  
kill syntax error


Expected Results:  
rsync daemon should be correctly stopped.


I tried this on 2 x86 computers, same error.
Version net-misc/rsync-2.5.6-r2
Comment 2 Cyril Pawelko 2003-08-25 03:04:43 UTC
I tried to use start-stop-deamon whith --make-pidfile option, but it doesn't works.
I finally found that 
"pid file = /var/run/rsyncd.pid"
must be added to /etc/rsync/rsyncd.conf
With this, rsyncd init script can stop rsync daemon.
I think a /etc/rsync/rsyncd.conf should be installed by the ebuild
Comment 3 Cyril Pawelko 2003-08-25 03:07:53 UTC
Created attachment 16579 [details]
rsyncd.conf file with necessary information

this is the /etc/rsyncd/rsyncd.conf file with the needed line for
/etc/init.d/rsyncd script to work.
Comment 4 SpanKY gentoo-dev 2003-08-25 20:46:15 UTC
-r3 will install the default rsyncd.conf file, thanks for the sample one