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.

Apache2 Log-file rotieren?

Empfohlene Antworten

Veröffentlicht

Hallo.

Ich möchte die Logfiles vom Apache2 (Debian 3.1) rotieren und habe da einige Fragen:

In /etc/logrotate.d existiert die Datei apache2.

1. Wie wird die Aufgerufen? Per Crontab wenn die Rotation beginnen soll?

2. Wie muss ich diese Datei modifizieren wenn die Logfiles jeden Montag Morgen um 03:00 Uhr rotiert werden sollen?

Irgendwie finde ich noch keinen Zugang zum logrotate. Gibt es irgendwo ein Manual das die Anweisungen in der Datei (missingok, rotate 52, compress...) erklärt?

Vielen Dank schon einmal im Voraus, Gruß Karl.

Hi,

1. ja, normalerweise wird das per cron aufgerufen. Bei mir liegts unter /etc/cron.daily/logrotate.cron.

2. Dann musst du z. B. mal hier nachschauen, wie man das in die Crontab einträgt.

Ansonsten hilft "man logrotate". Dort findest du alle Infos die du benötigst.

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

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.