Re: [root@pabdien: Anacron job 'cron.daily' on pabdien]

2018-02-03 Per discussione Felipe Salvador
On Sat, Feb 03, 2018 at 12:46:04PM +0100, Felipe Salvador wrote:
> Ciao lista,
> continuo a ricevere questo messaggio da anacron e non capisco perché;
> 
> /etc/cron.daily/logrotate:
> error: log /var/log/aptitude last rotated in the future -- rotation forced


La cosa sie è risolta editando il file /var/lib/logrotate/status, correggendo 
la data
relativa all'ultima rotazione di /var/log/aptitude.


>timedatectl status
>Local time: sab 2018-02-03 12:20:16 CET
>Universal time: sab 2018-02-03 11:20:16 UTC
>  RTC time: sab 2018-02-03 11:20:15
>  Time zone: Europe/Rome (CET, +0100)
>Network time on: yes
>NTP synchronized: yes
>RTC in local TZ: no
> 
> 
>echo -e $(stat -c atime=%x'\n'mtime=%y'\n'ctime=%z
>/var/log/aptitude)
>  
>   atime=2018-02-02 01:18:56.610363252 +0100
>   mtime=2018-02-02 01:19:01.326429204 +0100
>   ctime=2018-02-02 01:19:01.326429204 +0100
> 
> Stesso risultato nei file aptitude.{1..6}.gz
> 
>   atime=2018-02-01 00:30:54.608906549 +0100
>   mtime=2018-02-01 00:30:54.608906549 +0100
>   ctime=2018-02-01 00:30:54.608906549 +0100
> 
>   atime=2018-02-01 00:30:54.592907036 +0100
>   mtime=2018-02-01 00:30:54.592907036 +0100
>   ctime=2018-02-01 00:30:54.592907036 +0100
> 
>   atime=2018-02-01 00:30:54.604906671 +0100
>   mtime=2018-02-01 00:30:54.604906671 +0100
>   ctime=2018-02-01 00:30:54.604906671 +0100
> 
>   atime=2018-02-01 00:30:54.600906793 +0100
>   mtime=2018-02-01 00:30:54.600906793 +0100
>   ctime=2018-02-01 00:30:54.600906793 +0100
> 
>   atime=2018-02-01 00:30:54.604906671 +0100
>   mtime=2018-02-01 00:30:54.604906671 +0100
>   ctime=2018-02-01 00:30:54.604906671 +0100
> 
>   atime=2018-02-01 00:30:54.596906914 +0100
>   mtime=2018-02-01 00:30:54.596906914 +0100
>   ctime=2018-02-01 00:30:54.596906914 +0100
> 
> 
> PS. Tempo a dietro ho "pasticciato" con l'orologio di sistema, per
> risolvere ho usato touch dove serviva.
> 
> Saluti
> -- 
> Felipe Salvador

-- 
Felipe Salvador



[root@pabdien: Anacron job 'cron.daily' on pabdien]

2018-02-03 Per discussione Felipe Salvador
Ciao lista,
continuo a ricevere questo messaggio da anacron e non capisco perché;

/etc/cron.daily/logrotate:
error: log /var/log/aptitude last rotated in the future -- rotation forced

 timedatectl status
 Local time: sab 2018-02-03 12:20:16 CET
 Universal time: sab 2018-02-03 11:20:16 UTC
 RTC time: sab 2018-02-03 11:20:15
 Time zone: Europe/Rome (CET, +0100)
 Network time on: yes
 NTP synchronized: yes
 RTC in local TZ: no


 echo -e $(stat -c atime=%x'\n'mtime=%y'\n'ctime=%z
 /var/log/aptitude)
 
atime=2018-02-02 01:18:56.610363252 +0100
mtime=2018-02-02 01:19:01.326429204 +0100
ctime=2018-02-02 01:19:01.326429204 +0100

Stesso risultato nei file aptitude.{1..6}.gz

atime=2018-02-01 00:30:54.608906549 +0100
mtime=2018-02-01 00:30:54.608906549 +0100
ctime=2018-02-01 00:30:54.608906549 +0100

atime=2018-02-01 00:30:54.592907036 +0100
mtime=2018-02-01 00:30:54.592907036 +0100
ctime=2018-02-01 00:30:54.592907036 +0100

atime=2018-02-01 00:30:54.604906671 +0100
mtime=2018-02-01 00:30:54.604906671 +0100
ctime=2018-02-01 00:30:54.604906671 +0100

atime=2018-02-01 00:30:54.600906793 +0100
mtime=2018-02-01 00:30:54.600906793 +0100
ctime=2018-02-01 00:30:54.600906793 +0100

atime=2018-02-01 00:30:54.604906671 +0100
mtime=2018-02-01 00:30:54.604906671 +0100
ctime=2018-02-01 00:30:54.604906671 +0100

atime=2018-02-01 00:30:54.596906914 +0100
mtime=2018-02-01 00:30:54.596906914 +0100
ctime=2018-02-01 00:30:54.596906914 +0100


PS. Tempo a dietro ho "pasticciato" con l'orologio di sistema, per
risolvere ho usato touch dove serviva.

Saluti
-- 
Felipe Salvador



Re: cron.daily

2005-10-27 Per discussione Paolo Sala

robi.z (antispam x=i ) scrisse in data 27/10/2005 11:52:


mica man run-parts che non bisogna usare il punto nel nome del file,
tipo scriptsottorunparts.sh  ?


...proprio così :-[

Mille e mille grazie!!

Piviul


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: cron.daily

2005-10-27 Per discussione robi.z (antispam x=i )

Paolo Sala" <[EMAIL PROTECTED]> ha scritto


quindi sembra che cron.daily venga eseguito; come mai allora il
comando
che ho inserito in cron.daily non viene eseguito? Tieni conto che ha gli
stessi permessi (rwxr-xr-x) degli altri files nella dir e che se lo
eseguo manualmente funziona che è un piacere.


Guarda lurko da giorni che soffri su sta cosa e non vorrei
essermi perso qualche pezzo del thread, ma...


...mi sfugge qualcosa :-\


mica man run-parts che non bisogna usare il punto nel nome del file,
tipo scriptsottorunparts.sh  ?

--
rz


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: cron.daily

2005-10-26 Per discussione Paolo Sala

Sandro Tosi scrisse in data 25/10/2005 17:14:


Guarda allora in /var/log/syslog o piu' in generale se ti ispira
qualche file in /var/log.
 


Grandioso! ...effettivamente in syslog qualcosa c'è:


intranet:~# cat /var/log/syslog.0 | grep anacron
Oct 25 07:35:16 localhost anacron[15418]: Job `cron.daily' terminated
Oct 25 07:35:16 localhost anacron[15418]: Normal exit (1 job run)
Oct 26 06:25:01 localhost /USR/SBIN/CRON[18953]: (root) CMD (test -x 
/usr/sbin/anacron || run-parts --report /etc/cron.daily)
Oct 26 07:30:01 localhost /USR/SBIN/CRON[18975]: (root) CMD (test -x 
/etc/init.d/anacron && /usr/sbin/invoke-rc.d anacron start >/dev/null)
Oct 26 07:30:02 localhost anacron[18994]: Anacron 2.3 started on 
2005-10-26
Oct 26 07:30:02 localhost anacron[18994]: Will run job `cron.daily' in 
5 min.
Oct 26 07:30:02 localhost anacron[18994]: Will run job `cron.weekly' 
in 10 min.
Oct 26 07:30:02 localhost anacron[18994]: Jobs will be executed 
sequentially

Oct 26 07:35:02 localhost anacron[18994]: Job `cron.daily' started
Oct 26 07:35:02 localhost anacron[18998]: Updated timestamp for job 
`cron.daily' to 2005-10-26


quindi sembra che cron.daily venga eseguito; come mai allora il comando 
che ho inserito in cron.daily non viene eseguito? Tieni conto che ha gli 
stessi permessi (rwxr-xr-x) degli altri files nella dir e che se lo 
eseguo manualmente funziona che è un piacere.


...mi sfugge qualcosa :-\

Grazie mille per il tuo aiuto

Piviul



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: cron.daily

2005-10-25 Per discussione Sandro Tosi
> ti faccio sapere. In var/log/messages non ho trovato niente tranne che
> ogni 20 minuti esatti c'è una riga come questa:
>
> > Oct 25 07:45:37 localhost -- MARK --
>
> Che sia collegato?

No, quello e' il daemon di log che ti segnala che e' vivo... ;)

Guarda allora in /var/log/syslog o piu' in generale se ti ispira
qualche file in /var/log.

Ciao

--
Sandro Tosi (aka Morpheus, matrixhasu)
My (little) site: http://matrixhasu.altervista.org/



Re: cron.daily

2005-10-25 Per discussione Paolo Sala

Sandro Tosi scrisse in data 25/10/2005 14:21:


Grazie Sandro, che bella sorpresa, credevo che oramai nessuno mi avrebbe
più risposto! :-))
   



t'ho risposto anche perche' nessuno l'aveva fatto... ;)
 


:-[ mille grazie ancora...


...mi sembrano uguali; a parte che hai commentato qualche riga... non
hai mica idea cosa possa essere che non mi fa eseguire i files in
cron.daily?
   



ma solo quelli in cron.daily? Hai provato a guardare nei log?
Solitamente quando viene eseguito un cron job, viene scritto dentro
/var/log/messages. Inoltre prova a guardare dentro /var/spool/cron/.
 

Non so, non credo, credo che non vada crontab! Comunque ci guardo e poi 
ti faccio sapere. In var/log/messages non ho trovato niente tranne che 
ogni 20 minuti esatti c'è una riga come questa:



Oct 25 07:45:37 localhost -- MARK --


Che sia collegato?

Se ti potesse essere utile...


# ls -lRa /var/spool/cron
/var/spool/cron:
totale 20
drwxr-xr-x  5 root   root4096 2005-10-10 16:47 .
drwxr-xr-x  7 root   root4096 2005-10-12 13:33 ..
drwx--  2 daemon daemon  4096 2005-10-10 16:47 atjobs
drwx--  2 daemon daemon  4096 2002-01-18 09:13 atspool
drwx-wx--T  2 root   crontab 4096 2004-07-28 22:44 crontabs

/var/spool/cron/atjobs:
totale 8
drwx--  2 daemon daemon 4096 2005-10-10 16:47 .
drwxr-xr-x  5 root   root   4096 2005-10-10 16:47 ..
-rw---  1 daemon daemon0 2002-01-18 09:13 .SEQ

/var/spool/cron/atspool:
totale 8
drwx--  2 daemon daemon 4096 2002-01-18 09:13 .
drwxr-xr-x  5 root   root   4096 2005-10-10 16:47 ..

/var/spool/cron/crontabs:
totale 8
drwx-wx--T  2 root crontab 4096 2004-07-28 22:44 .
drwxr-xr-x  5 root root4096 2005-10-10 16:47 ..



Mille grazie ancora

Piviul


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: cron.daily

2005-10-25 Per discussione Paolo Sala

Sandro Tosi scrisse in data 25/10/2005 14:21:


Grazie Sandro, che bella sorpresa, credevo che oramai nessuno mi avrebbe
più risposto! :-))
   



t'ho risposto anche perche' nessuno l'aveva fatto... ;)
 


:-[ mille grazie ancora...


...mi sembrano uguali; a parte che hai commentato qualche riga... non
hai mica idea cosa possa essere che non mi fa eseguire i files in
cron.daily?
   



ma solo quelli in cron.daily? Hai provato a guardare nei log?
Solitamente quando viene eseguito un cron job, viene scritto dentro
/var/log/messages. Inoltre prova a guardare dentro /var/spool/cron/.
 

Non so, non credo, credo che non vada crontab! Comunque ci guardo e poi 
ti faccio sapere.


Se ti potesse essere utile...
# ls -lRa /var/spool/cron
/var/spool/cron:
totale 20
drwxr-xr-x  5 root   root4096 2005-10-10 16:47 .
drwxr-xr-x  7 root   root4096 2005-10-12 13:33 ..
drwx--  2 daemon daemon  4096 2005-10-10 16:47 atjobs
drwx--  2 daemon daemon  4096 2002-01-18 09:13 atspool
drwx-wx--T  2 root   crontab 4096 2004-07-28 22:44 crontabs

/var/spool/cron/atjobs:
totale 8
drwx--  2 daemon daemon 4096 2005-10-10 16:47 .
drwxr-xr-x  5 root   root   4096 2005-10-10 16:47 ..
-rw---  1 daemon daemon0 2002-01-18 09:13 .SEQ

/var/spool/cron/atspool:
totale 8
drwx--  2 daemon daemon 4096 2002-01-18 09:13 .
drwxr-xr-x  5 root   root   4096 2005-10-10 16:47 ..

/var/spool/cron/crontabs:
totale 8
drwx-wx--T  2 root crontab 4096 2004-07-28 22:44 .
drwxr-xr-x  5 root root4096 2005-10-10 16:47 ..

Mille grazie ancora

Piviul


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: cron.daily

2005-10-25 Per discussione Sandro Tosi
> Grazie Sandro, che bella sorpresa, credevo che oramai nessuno mi avrebbe
> più risposto! :-))

t'ho risposto anche perche' nessuno l'aveva fatto... ;)

> ...mi sembrano uguali; a parte che hai commentato qualche riga... non
> hai mica idea cosa possa essere che non mi fa eseguire i files in
> cron.daily?

ma solo quelli in cron.daily? Hai provato a guardare nei log?
Solitamente quando viene eseguito un cron job, viene scritto dentro
/var/log/messages. Inoltre prova a guardare dentro /var/spool/cron/.

Ciao

--
Sandro Tosi (aka Morpheus, matrixhasu)
My (little) site: http://matrixhasu.altervista.org/



Re: cron.daily

2005-10-25 Per discussione Paolo Sala
Grazie Sandro, che bella sorpresa, credevo che oramai nessuno mi avrebbe 
più risposto! :-))


Sandro Tosi scrisse in data 24/10/2005 18:57:


Io ho

# cat /etc/crontab
# /etc/crontab: system-wide crontab
# Unlike any other crontab you don't have to run the `crontab'
# command to install the new version when you edit this file.
# This file also has a username field, that none of the other crontabs do.

SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

# m h dom mon dow user  command
#17 *   * * *   rootrun-parts --report /etc/cron.hourly
25 6* * *   roottest -x /usr/sbin/anacron || run-parts
--report /etc/cron.daily
#47 6   * * 7   roottest -x /usr/sbin/anacron || run-parts
--report /etc/cron.weekly
#52 6   1 * *   roottest -x /usr/sbin/anacron || run-parts
--report /etc/cron.monthly
#

tu?
 


# cat /etc/crontab
# /etc/crontab: system-wide crontab
# Unlike any other crontab you don't have to run the `crontab'
# command to install the new version when you edit this file.
# This file also has a username field, that none of the other crontabs do.

SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

# m h dom mon dow user  command
17 ** * *   rootrun-parts --report /etc/cron.hourly
25 6* * *   roottest -x /usr/sbin/anacron || run-parts --report 
/etc/cron.daily
47 6* * 7   roottest -x /usr/sbin/anacron || run-parts --report 
/etc/cron.weekly
52 61 * *   roottest -x /usr/sbin/anacron || run-parts --report 
/etc/cron.monthly


...mi sembrano uguali; a parte che hai commentato qualche riga... non 
hai mica idea cosa possa essere che non mi fa eseguire i files in 
cron.daily?


Grazie ancora

Piviul


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: cron.daily

2005-10-24 Per discussione Sandro Tosi
> Quali pacchetti mi permettono di eseguire in automatico, giornalmente i
> files in /etc/cron.daily? Ho installato cron e anacron ma non sembrano
> bastare. Qualcuno ha qualche idea di quali possano essere? Oppure cosa
> debba fare perché vengano eseguiti?

Io ho

# cat /etc/crontab
# /etc/crontab: system-wide crontab
# Unlike any other crontab you don't have to run the `crontab'
# command to install the new version when you edit this file.
# This file also has a username field, that none of the other crontabs do.

SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

# m h dom mon dow user  command
#17 *   * * *   rootrun-parts --report /etc/cron.hourly
25 6* * *   roottest -x /usr/sbin/anacron || run-parts
--report /etc/cron.daily
#47 6   * * 7   roottest -x /usr/sbin/anacron || run-parts
--report /etc/cron.weekly
#52 6   1 * *   roottest -x /usr/sbin/anacron || run-parts
--report /etc/cron.monthly
#

tu?

Ciao

--
Sandro Tosi (aka Morpheus, matrixhasu)
My (little) site: http://matrixhasu.altervista.org/



cron.daily

2005-10-20 Per discussione Paolo Sala
Quali pacchetti mi permettono di eseguire in automatico, giornalmente i 
files in /etc/cron.daily? Ho installato cron e anacron ma non sembrano 
bastare. Qualcuno ha qualche idea di quali possano essere? Oppure cosa 
debba fare perché vengano eseguiti?


Grazie mille

Piviul


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: /etc/cron.daily nomi con punto (.)

2005-08-18 Per discussione Alessandro De Zorzi
Johan Haggi wrote:

> Non con anacron, da /etc/anacrontab:
> 
> 1   5cron.daily   nice run-parts --report /etc/cron.daily

allora ci risiamo :-P

in ogni caso ho sostituito il "." con il "-" e funziona, mi resta il
dubbio di perché su rh73 funzionasse...

Alessandro


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: /etc/cron.daily nomi con punto (.)

2005-08-18 Per discussione Johan Haggi
gio 18 agosto 2005, alle 14:51 (GMT+0200), Alessandro De Zorzi ha scritto:
> Johan Haggi wrote:
> >>man run-parts
> > La risposta completa era:
> > man run-parts (temo che non ci sia soluz. a parte modificarne i sorgenti
> > o usare un altro programma per eseguire gli script)
> 
> run-parts non ammette il . nel nome, se viene data l'opzione
> --lsbsysinit non viene ammesso neppure "_"
> 
> in /etc/crontab trovo
> [...]
> forse usando anacron risulta possibile

Non con anacron, da /etc/anacrontab:

1   5cron.daily   nice run-parts --report /etc/cron.daily
-- 
Ave   Johan Haggi
ante diem decimum quintum Kalendas Septembres MMDCCLVIII ab Urbe condita
**NEW** GnuPG key-id: 0x398F1A73 (available on http://keyserver.linux.it)
Fingerprint: 75D4 86D5 B795 BD31 4BD2  2354 9206 CB42 398F 1A73


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: /etc/cron.daily nomi con punto (.)

2005-08-18 Per discussione Alessandro De Zorzi
Johan Haggi wrote:

> La risposta completa era:
> man run-parts (temo che non ci sia soluz. a parte modificarne i sorgenti
> o usare un altro programma per eseguire gli script)

eppure su RedHat 7.3 trovavo

01 * * * * root run-parts /etc/cron.hourly

ed eseguiva i file col punto, forse un cambio di versione?

Alessandro




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: /etc/cron.daily nomi con punto (.)

2005-08-18 Per discussione Alessandro De Zorzi
Johan Haggi wrote:

>>man run-parts
> 
> La risposta completa era:
> man run-parts (temo che non ci sia soluz. a parte modificarne i sorgenti
> o usare un altro programma per eseguire gli script)

run-parts non ammette il . nel nome, se viene data l'opzione
--lsbsysinit non viene ammesso neppure "_"

in /etc/crontab trovo

25 6* * *   roottest -x /usr/sbin/anacron || run-parts
--lsbsysinit --report /etc/cron.daily

forse usando anacron risulta possibile

Alessandro


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: /etc/cron.daily nomi con punto (.)

2005-08-17 Per discussione Marco Gaiarin
Mandi! Alessandro De Zorzi
  In chel dí si favelave...

ADZ> possibile che Debian nella configurazione di default non esegua i file
ADZ> con il nome contenente punto (.) che si trovano in /etc/cron.daily ?

man run-parts

il principio è quello.

-- 
  Nobody expects the Bavarian inquisition!
(Anonimo, 19/4/2005)


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: /etc/cron.daily nomi con punto (.)

2005-08-17 Per discussione Johan Haggi
mer 17 agosto 2005, alle 20:09 (GMT+0200), ho inviato per errore:
> mer 17 agosto 2005, alle 10:46 (GMT+0200), Alessandro De Zorzi ha scritto:
> > possibile che Debian nella configurazione di default non esegua i file
> > con il nome contenente punto (.) che si trovano in /etc/cron.daily ?
> man run-parts
La risposta completa era:
man run-parts (temo che non ci sia soluz. a parte modificarne i sorgenti
o usare un altro programma per eseguire gli script)
-- 
Ave   Johan Haggi
ante diem decimum sextum Kalendas Septembres MMDCCLVIII ab Urbe condita
**NEW** GnuPG key-id: 0x398F1A73 (available on http://keyserver.linux.it)
Fingerprint: 75D4 86D5 B795 BD31 4BD2  2354 9206 CB42 398F 1A73


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: /etc/cron.daily nomi con punto (.)

2005-08-17 Per discussione Johan Haggi
mer 17 agosto 2005, alle 10:46 (GMT+0200), Alessandro De Zorzi ha scritto:
> possibile che Debian nella configurazione di default non esegua i file
> con il nome contenente punto (.) che si trovano in /etc/cron.daily ?
man run-parts
-- 
Ave   Johan Haggi


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



/etc/cron.daily nomi con punto (.)

2005-08-17 Per discussione Alessandro De Zorzi
possibile che Debian nella configurazione di default non esegua i file
con il nome contenente punto (.) che si trovano in /etc/cron.daily ?

Alessandro


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: strano cron.daily

2000-11-16 Per discussione Stefano Zacchiroli
On Thu, Nov 16, 2000 at 10:12:09AM +0100, Andrea Basso wrote:
> Io in genere installo i pacchetti in automatico e sinceramente non
> riesco a capire quale sia quello che attiva questa procedura
> giornaliera. Qualcuno di voi ha un idea?
per quanto riguarda find ti hanno gia' risposto, cmq in generale se vuoi
sapere qual'e' il pacchetto al quale appartiene un certo file prova
dpkg -S 
ti dovrebbe ritornare il pacchetto di appartenenza di un dato file.

Ciao

-- 
- Zack -

Stefano Zacchiroli <[EMAIL PROTECTED]> ICQ# 33538863
Undergraduate Student of Computer Science at University of Bologna, Italy
SysAdm of verdicchio.students.cs.unibo.it (130.136.3.134)
"Information wants to be Open"




Re: strano cron.daily

2000-11-16 Per discussione a . maurizi

man updatedb:
updatedb - update a file name database

dovrebbe aggiornarti il database per il comando
locate (man locate: locate - list files in databases that
match a pattern). Non so se aggiorna anche qualche altro db.

Chiaramente fa un find di tutto il filesystem ed e` scheduled
per un tempo in cui non dovrebbe rompere le palle (tipo
la notte alle 4, mi pare). Se stamattina stava ancora
girando puo` essere:
1) hai un filesystem ciclopico
2) la macchina e` stata (ri)accesa stamattina
In questo secondo caso, l'anacron lo fa partire
poco dopo l'accensione della macchina se si accorge che
l'ultimo cron non e` stato eseguito.

Spero di essere stato di aiuto.

Ciao,
a.


---
Alberto Maurizi ISAO-CNR
[EMAIL PROTECTED]   via Gobetti 101
http://www.isao.bo.cnr.it/~abl/maurizi  I-40129 Bologna, Italy
Phone n. +39 051 639 9615   Fax n. +39 051 639 9658

"Il tempo trascorso a ridere, e' tempo trascorso con gli dei"
(proverbio giapponese)




strano cron.daily

2000-11-16 Per discussione Andrea Basso
Ciao a tutti,
stamattina mi sono reso conto di avere su di un server uno strano
processo, attivato da un file in cron.daily, che mi occupa oltre il 95%
di CPU. Il file in questione ha nome "find" ed e' fatto cosi':

---

#! /bin/sh
#
# cron script to update the `find.codes' database.
#
# Written by Ian A. Murdock <[EMAIL PROTECTED]> and
#Kevin Dalley <[EMAIL PROTECTED]>

if [ -f /etc/updatedb.conf ]; then
  . /etc/updatedb.conf
fi

cd / && updatedb --localuser=nobody 2>/dev/null

---

mentre /etc/updatedb.conf (richiamato dallo script) e' fatto cosi':

---

# This file sets environment variables which are used by updatedb

# filesystems which are pruned from updatedb database
PRUNEFS="NFS nfs afs proc smbfs autofs auto iso9660 ncpfs coda"
export PRUNEFS
# paths which are pruned from updatedb database
PRUNEPATHS="/tmp /usr/tmp /var/tmp /afs /amd /alex /var/spool"
export PRUNEPATHS
# netpaths which are added
NETPATHS=""
export NETPATHS

---

Io in genere installo i pacchetti in automatico e sinceramente non
riesco a capire quale sia quello che attiva questa procedura
giornaliera. Qualcuno di voi ha un idea?

Grazie a tutti e ciao
Andrea Basso

P.S.: se e' una stupidata, per cortesia non lapidatemi :(