Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#20942 - [rsync] --daemon creates its own pid file
Attached to Project:
Arch Linux
Opened by Loui Chang (louipc) - Saturday, 25 September 2010, 14:42 GMT
Last edited by Pierre Schmitz (Pierre) - Thursday, 07 June 2012, 06:31 GMT
Opened by Loui Chang (louipc) - Saturday, 25 September 2010, 14:42 GMT
Last edited by Pierre Schmitz (Pierre) - Thursday, 07 June 2012, 06:31 GMT
|
DetailsIt seems that the latest version of rsync --daemon creates a pid
file on it's own, so this line in /etc/rc.d/rsyncd is redundant, and may actually cause issues. pgrep -of "/usr/bin/rsync --daemon" > /var/run/rsyncd.pid |
This task depends upon
The problem is that if you change it, the rc.d script has no way of knowing.
If the script does want to create its own pid file, it should also remember to remove
it when stopping the service - rsync won't know what the rc.d script is doing.
After a valid start ( [[ $? == 0 ]] ) check if the process is indeed running. If there was a valid start, but /var/run/rsyncd.pid is missing, create it.
Here's a patch that proposes a fix for /etc/rc.d/rsyncd.