/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
/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
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
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.
-r3 will install the default rsyncd.conf file, thanks for the sample one