[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: locates Datenbank leer



Frank Küster wrote:
...
Das sieht soweit ganz in Ordnung aus; allerdings ist updatedb ein
bißchen krank: /etc/updatedb.conf wird nur eingelesen, wenn das Skript
von /etc/cron.daily/find gestartet wird.  Wenn du also wirklich deine
Konfiguration testen willst, musst du es so machen:

# . /etc/updatedb.conf
# sh -x /usr/bin/updatedb

Hm, scheint nichts zu ändern, oder seh ich den Wald vor lauter Bäumen nicht:

root@linux:/var/cache/locate# . /etc/updatedb.conf
root@linux:/var/cache/locate# sh -x /usr/bin/updatedb
+ usage='Usage: /usr/bin/updatedb [--findoptions='\''-option1 -option2...'\''] [--localpaths='\''dir1 dir2...'\''] [--netpaths='\''dir1 dir2...'\'']
       [--prunepaths='\''dir1 dir2...'\''] [--prunefs='\''fs1 fs2...'\'']
       [--output=dbfile] [--netuser=user] [--localuser=user]
       [--old-format] [--version] [--help]

Report bugs to <bug-findutils@gnu.org>.'
+ changeto=/
+ old=no
+ test no = yes
+ true
+ sort='/usr/bin/sort -z'
+ print_option=-print0
+ frcode_options=-0
+ : -ignore_readdir_race
+ : /bin/bash
+ : /
+ :
+ : /tmp /usr/tmp /var/tmp /afs /amd /alex /var/spool /sfs /media
+ for p in '$PRUNEPATHS'
+ case "$p" in
+ for p in '$PRUNEPATHS'
+ case "$p" in
+ for p in '$PRUNEPATHS'
+ case "$p" in
+ for p in '$PRUNEPATHS'
+ case "$p" in
+ for p in '$PRUNEPATHS'
+ case "$p" in
+ for p in '$PRUNEPATHS'
+ case "$p" in
+ for p in '$PRUNEPATHS'
+ case "$p" in
+ for p in '$PRUNEPATHS'
+ case "$p" in
+ for p in '$PRUNEPATHS'
+ case "$p" in
+ test -z ''
++ echo /tmp /usr/tmp /var/tmp /afs /amd /alex /var/spool /sfs /media
++ sed -e 's,^,\\(^,' -e 's, ,$\\)\\|\\(^,g' -e 's,$,$\\),'
+ PRUNEREGEX='\(^/tmp$\)\|\(^/usr/tmp$\)\|\(^/var/tmp$\)\|\(^/afs$\)\|\(^/amd$\)\|\(^/alex$\)\|\(^/var
+ : /var/cache/locate/locatedb
+ test -d /var/tmp
+ : /var/tmp
+ export TMPDIR
+ : daemon
+ test -n ''
+ : /usr/lib/locate
+ test -n ''
+ : /usr/bin
+ : /usr/bin/find
+ : /usr/lib/locate/frcode
+ : /usr/lib/locate/bigram
+ : /usr/lib/locate/code
+ PATH=/bin:/usr/bin:/usr/bin
+ export PATH
+ : NFS nfs nfs4 afs binfmt_misc proc smbfs autofs iso9660 ncpfs coda devpts ftpfs devfs mfs shfs sysf + test -n 'NFS nfs nfs4 afs binfmt_misc proc smbfs autofs iso9660 ncpfs coda devpts ftpfs devfs mfs sh ++ echo NFS nfs nfs4 afs binfmt_misc proc smbfs autofs iso9660 ncpfs coda devpts ftpfs devfs mfs shfs
++ sed -e 's/\([^ ][^ ]*\)/-o -fstype \1/g' -e 's/-o //' -e 's/$/ -o/'
+ prunefs_exp='-fstype NFS -o -fstype nfs -o -fstype nfs4 -o -fstype afs -o -fstype binfmt_misc -o -fs o9660 -o -fstype ncpfs -o -fstype coda -o -fstype devpts -o -fstype ftpfs -o -fstype devfs -o -fstype
stype lustre_lite -o -fstype tmpfs -o -fstype usbfs -o'
+ rm -f /var/cache/locate/locatedb.n
+ trap 'rm -f $LOCATE_DB.n; exit' HUP TERM
+ test no = no
+ cd /
+ test -n /
+ '[' nobody '!=' '' ']'
++ select_shell nobody
++ su nobody -s /bin/bash false
+ /usr/bin/sort -z -f
+ /usr/lib/locate/frcode -0
++ su nobody -s /bin/bash true
++ echo '-s /bin/bash'
+ su nobody -s /bin/bash -c '/usr/bin/find / -ignore_readdir_race \( -fstype NFS -o -fstype nfs - stype proc -o -fstype smbfs -o -fstype autofs -o -fstype iso9660 -o -fstype ncpfs -o -fstype coda -o - mfs -o -fstype shfs -o -fstype sysfs -o -fstype cifs -o -fstype lustre_lite -o -fstype tmpfs -o -fsty
p$\)\|\(^/var/tmp$\)\|\(^/afs$\)\|\(^/amd$\)\|\(^/alex$\)\|\(^/var/spool$\)\|\(^/sfs$\)\|\(^/media$\)'
+ test -n ''
+ true
+ test -s /var/cache/locate/locatedb.n
+ rm -f /var/cache/locate/locatedb
+ mv /var/cache/locate/locatedb.n /var/cache/locate/locatedb
+ chmod 644 /var/cache/locate/locatedb
+ exit 0
root@linux:/var/cache/locate#

Läuft einfach nicht?

Viele Grüße
André



Reply to: