Logrotate mag nicht.

Schweinebauer

Registered User
www:/# /etc/logrotate.conf
/etc/logrotate.conf: line 3: weekly: command not found
/etc/logrotate.conf: line 6: rotate: command not found
/etc/logrotate.conf: line 9: create: command not found
/etc/logrotate.conf: line 15: include: command not found
/etc/logrotate.conf: line 18: /var/log/wtmp: Permission denied
/etc/logrotate.conf: line 19: missingok: command not found
/etc/logrotate.conf: line 20: monthly: command not found
/etc/logrotate.conf: line 21: create: command not found
/etc/logrotate.conf: line 22: rotate: command not found
/etc/logrotate.conf: line 23: syntax error near unexpected token `}'
/etc/logrotate.conf: line 23: `}'


Hallo, ich hoffe diese Ausgabe hilft weiter.

Ich möchte logrotate konfigurieren, habe auch schon apt-get genutzt um logrotate neu zu installieren.

Woran könnte der Fehler liegen?
 
An deinen Configfiles. Du hast irgendwo einen Fehler drin. Paste die enstsprechenden Files bitte einmal.

Das da nen Fehler drin ist, erkennst du daran das er z.b. versucht den Command 'weekly' auszuführen...

So long,
Thilo
 
# see "man logrotate" for details
# rotate log files weekly
weekly

# keep 4 weeks worth of backlogs
rotate 4

# create new (empty) log files after rotating old ones
create

# uncomment this if you want your log files compressed
#compress

# packages drop log rotation information into this directory
include /etc/logrotate.d

# no packages own wtmp, or btmp -- we'll rotate them here
/var/log/wtmp {
missingok
monthly
create 0664 root utmp
rotate 1
}

/var/log/btmp {
missingok
monthly
create 0664 root utmp
rotate 1
}

# system-specific logs may be configured here
 
LOOOL. Sorry, sehe grade deinen Fehler *grins* Du wirst selbst lachen ;)

Du versuchst die Configfile auszuführen ;)

Starte einfach mal 'logrotate'. Bzw. schau dir die Manpage dazu an :)

Gruß,
Thilo
 
Back
Top