failed to create pid file /var/run/rsyncd.pid: File exists
phenomenon
[root@source run]# rsync --daemon
[root@source run]# failed to create pid file /var/run/rsyncd.pid: File exists
Solution
Analysis: When you use kill -9 to delete the process number, the pid file is not deleted.
Use rm -rf to delete the pid file and restart. Or use kill to delete the process number
[root@source run]# cat rsyncd.pid
12777
[root@source run]# kill -9 12777
[root@source run]# netstat -ntap |grep rsync
[root@source run]# rsync --daemon
[root@source run]# failed to create pid file /var/run/rsyncd.pid: File exists
[root@source run]# rm -rf rsyncd.pid
[root@source run]# rsync --daemon