我该如何终止这些不断重生的 rsync 守护进程
root@que2 ~ # ps aux | grep rsync
root 9660 0.0 0.0 19928 2844 ? S 13:35 0:00 rsync -rlptD --progress --delete --exclude=server/files/* /home/.moto28/ /remote-backups/.que2.domain.com/home/.moto28/
root 9661 0.2 0.0 19988 3276 ? S 13:35 0:00 rsync -rlptD --progress --delete --exclude=server/files/* /home/.moto27/ /remote-backups/.que2.domain.com/home/.moto27/
root 9662 0.0 0.0 18064 1948 ? D 13:35 0:00 rsync -rlptD --progress --delete --exclude=server/files/* /home/.moto28/ /remote-backups/.que2.domain.com/home/.moto28/
root 9663 0.1 0.0 19756 2252 ? S 13:35 0:00 rsync -rlptD --progress --delete --exclude=server/files/* /home/.moto27/ /remote-backups/.que2.domain.com/home/.moto27/
root 9664 0.0 0.0 19920 2332 ? D 13:35 0:00 rsync -rlptD --progress --delete --exclude=server/files/* /home/.moto27/ /remote-backups/.que2.domain.com/home/.moto27/
root 9667 0.0 0.0 19892 1812 ? S 13:35 0:00 rsync -rlptD --progress --delete --exclude=server/files/* /home/.moto28/ /remote-backups/.que2.domain.com/home/.moto28/
root 12308 0.0 0.0 14612 2356 pts/1 S+ 13:36 0:00 grep --color=auto rsync
在 Ubuntu 14.01 上
root@que2 ~ # sysv-rc-conf --level 2345 rsync off
root@que2 ~ # sysv-rc-conf --list rsync
rsync 0:off 1:off 2:off 3:off 4:off 5:off 6:off
root@que2 ~ # service rsync status
* rsync is not running
我是否要终止每个单独的进程 ID?
for i in $(pgrep -f rsync); do kill -9 "$i"; done ;
或者我可以 killall rsync 吗?
killall rsync