Re: error running shared postrotate script for '/var/log/myt…
Català
Dansk
Deutsch
Ελληνικά
English
Español
suomi
Français
Galego
magyar
Italiano
日本語
Nederlands
Polski
Português
Português Brasileiro
Este mensaje es parte del siguiente hilo:
El árbol completo de hilos, ordenados por fecha
Christian Marillat, mensaje del 2013-09-01 17:13
2013-09-01 17:13
Christian Marillat, mensaje del 2013-09-04 05:16
2013-09-04 05:16
Autor:
Martin Gallant
Fecha:
2013-09-03 11:53
2013-09-03 11:53
-000
UTC
A:
dmo-discussion
Asunto:
Re: error running shared postrotate script for '/var/log/mythtv/*.log '
On Tue, Aug 27, 2013 at 2:50 PM, Christian Marillat <marillat@???> wrote:
> ,---- > | if [ -z pidof mythlogserver ]; then > | kill -HUP mythlogserver > | fi > `----
I think this needs to be (Note quotes)
[ -z "pidof mythlogserver" ];
Otherwise, I get the following error in my email
/etc/cron.daily/logrotate:
logrotate_script: 2: [: pidof: unexpected operator
Sorry for not catching this earlier, but this stanza does not run
unless logs were actually rotated.
--
Marty