diff --git a/etc/rc.d/cleanvar b/etc/rc.d/cleanvar index f2b396f0390c..039f1aa53602 100644 --- a/etc/rc.d/cleanvar +++ b/etc/rc.d/cleanvar @@ -18,6 +18,8 @@ purgedir() ( cd "$dir" && for file in .* * do + # Skip over logging sockets + [ -S "$file" -a "$file" = "log" ] && continue [ ."$file" = .. -o ."$file" = ... ] && continue if [ -d "$file" -a ! -L "$file" ] then