Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Empfohlene Antworten

Warum nutzt Du nicht Logrotate, das ist das entsprechende Tool für Dein Vorhaben. Die find Lösung ist eher mehr als "gebastel"

Moin...

Habe mir deinen Rat mal zu Herzen genommen und mir logrotate mal angeschaut.

Also für den apache webserver ist das ja verständlich.

Ich habe aber noch logfiles von einem CMS System die rotiert werden müssten. Kann ich jetzt einfach in der logrotate.conf einen neuen Eintrag dafür vornehmen ?

BSP:

/var/log/cms.log {

   weekly                                       

   compress                                 

   rotate 5                                      



}

Ich denke nicht, dass das so funktionieren wird. Beim apache wird der Dienst ja neugestartet, wenn das log geleert wird. Das müsste bei meinem individuellen Eintrag in der logrotate.conf ja auch so sein, richtig ?

Danke schon mal...

Ich habe aber noch logfiles von einem CMS System die rotiert werden müssten. Kann ich jetzt einfach in der logrotate.conf einen neuen Eintrag dafür vornehmen ?

Nein das soll nicht so sein. Logrotate hat seine "Hauptkonfiguration" in /etc/logrotate.conf Die Rotations für die einzelnen Dienste liegen meist in einem separaten Verzeichnis unter /etc/lorotate(.d). In dem für jede Art von Log wieder eine eigene Datei existiert. Hierzu findest Du aber die Informationen in den Manuals bzw in der Doku Deiner Distribution

Ich denke nicht, dass das so funktionieren wird. Beim apache wird der Dienst ja neugestartet, wenn das log geleert wird. Das müsste bei meinem individuellen Eintrag in der logrotate.conf ja auch so sein, richtig ?

Das kann sein, muss aber nicht. Apache soll ja immer in das "neue" leere Log schreiben, damit er das merkt, muss er eben mit reload neu geladen werden

Erstelle ein Konto oder melde dich an, um einen Kommentar zu schreiben.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.