Really SOLVED: world viewable /var/log/mail.info
d.a.glynos
glynos at storm.cs.unipi.gr
Thu Sep 14 12:03:37 EEST 2006
On Thu, 14 Sep 2006, Christos Ricudis wrote:
> > Την 14/9/2006, Giorgos Keramidas <keramida at ceid.upatras.gr> έγραψε:
> >
> > <brisidia>
Prin arxiseis na vrizeis 3eka8arise sto mualo sou 3 pramata:
a) De xrhsimopoioun ola ta services th syslog(3). Auto shmainei oti
paragontai sto /var/log logs apo services pou mono ekeina 3eroun
na ta diaxeirizontai (p.x. kapoia ap'auta mporei na xreiazontai kill -1
otan ginetai to rotation tou log).
b) Gia ta parapanw services, kanoume register scripts sto logrotate.
Omws to logrotate den einai meros ths vasikhs dianomhs tou Debian. Se ena
stripped down systhma mporei na mhn einai egkatesthmeno.
c) O syslog xreiazetai kai autos kapoias morfhs log-rotation.
Synepws, ta vasika cron scripts kanoun *oti mporoun* gia na sou dwsoun
ena daily rotation, eite exeis logrotate eite oxi.
> Misw apisteyta ta ouranokatebata alternatives twn standard UNIX tools
> eidika otan exoun efta matia kai tria xeria. Gia paradeigma, apex8anomai
> frixta to xinetd h to star, h opoiondhpote allo tetoiou stul newterismo
> skeftei kapoios a8lios na enswmatwsei sto distribution tou aplws epeidh
> tou gyalise.
Na les pali kala pou den evalan RPC interface ston xinetd gia na
shkwneis/katevazeis/perneis status twn services pou trexei :P
Mias kai aneferes to star, exw mia aporia: Estw oti apofasizeis na mh
kaneis filesystem dump, alla na pareis ena backup ws tar-like archive.
Ta hardlinks (pou mexri kai ta terminfo entries dhmiourgoun) 8a
ftiaxnoun (kata to restore) 3exwrista arxeia ana link? Yparxei enallaktikh
lysh ektos apo to rsync se filesystem?
> Voila! Instant symmazemena log files. To rotation ginetai paneykola me
> th find, briskete ola ta log files sas taktopoihmena se ena meros, de
> gemizete diskous tzampa, kai fysika den exete log files ama sas pesei to
> LAN, pragma poy sas parakinei na to exete panta se katastash etoimothtas.
find? mpliax! logrotate! :)
Epishs, an prokeitai gia mission critical logs, kratas kai mia copia
locally apo ta shmantika.
dimitris
More information about the Linux-greek-users
mailing list