Logrotate

Begonnen von Markus., 21 Januar 2018, 19:11:07

Vorheriges Thema - Nächstes Thema

Markus.

Hallo Zusammen,

habe irgendwie ein Problem mit dem Logrotate für einen Service.

Und zwar log der Ebusd-Service in die Datei \var\log\ebus\ebus.log

meine Logrotate Config in /etc/logrotate.d/ebusd
Sieht wie folgt aus.

/var/log/ebus/ebus.log {
     rotate 7
     copytruncate
     compress
     missingok
     notifempty
     daily
/usr/bin/killall -HUP ebusd

}


Bekomme aber beim ausführen von  logrotate -d /etc/logrotate.d/ebusd
folgende Meldung.

reading config file /etc/logrotate.d/ebusd
error: /etc/logrotate.d/ebusd:8 unexpected log filename
error: found error in /var/log/ebus/ebus.log , skipping
removing last 1 log configs
Reading state from file: /var/lib/logrotate/status
Allocating hash table for state file, size 64 entries
Creating new state
Creating new state
Creating new state
Creating new state
Creating new state
Creating new state
Creating new state
Creating new state
Creating new state
Creating new state
Creating new state
Creating new state
Creating new state
Creating new state
Creating new state
Creating new state
Creating new state
Creating new state
Creating new state
Creating new state
Creating new state
Creating new state
Creating new state
Creating new state

Die Logdatei ist vohanden und wird auch gefüllt. Der Name der Logdatei selber ist doch egal oder muß er genauso wie der Service sein?
Steh da im Moment ein wenig auf dem Schlauch.
Achso das ganze läuft auf Raspi Stretch und der Service ist systemctl.

Hoffe einer hat da eine Idee...

Gruß

Markus

EDIT:  hab /usr/bin/killall -HUP ebusd mal entfernt und nun geht's anscheinend...