Created attachment 229461 [details] 100.clean-disks.patch Cleaning disks: rm: py-pyroute2.core: Directory not empty /etc/periodic/daily/100.clean-disks attempt to remove *.core named ports. For example: /usr/ports/net/py-pyroute2.core Fix: /usr/ports/ (ports directory) must be excluded in script - see attached patch. Set daily_clean_disks_files="" in /etc/periodic.conf (bug #41777) - is not fix for it.
There is nothing terribly special about /usr/ports, there can be other places where *.core is a precious file or directory. So, the script should be extended with a notion of configurable excluded paths. Or, better yet, just don't use this script. I think that the idea that a certain name pattern would match only useless files globally can be dangerous.
Configurable excluded paths is good idea. I use this script since FreeBSD 4.x and have no any problems before subject error.
*** Bug 259906 has been marked as a duplicate of this bug. ***
Configurable excluded paths is very good idea. I hit the problem also. Because MySQL using prefix of "#" as many file/directory name. And MySQL had been crash because critical files deleted by the feature. Unfortunately the problem of "#" can not modify. Thank very much.
Hi All My workaround about this issue affects MySQL - rc=$(find / \( ! -fstype local -o -fstype rdonly \) -prune -o \ + rc=$(find / \( ! -fstype local -o -fstype rdonly -o -path '[MYSQL_DB_DIR]' -o -path '[OTHER_EXCLUDE_DIR]' \) -prune -o \ \( $args \) -atime +$daily_clean_disks_days \