Package: zabbix-agent Severity: normal Tags: patch zabbix-agent should cleanup /tmp/zabbix_agentd.tmp in init.d. When run with an obsolete version of this file, the daemon won't generate a new one, making debugging tasks tedious (specialy if you ignore this fact).
Besides, it doesn't remove it when it's no longer in use either. -- Robert Millan [EMAIL PROTECTED] Departamento de Asistencia Técnica Oficina central: (+34) 902 888 345 Asistencia técnica: (+34) 902 888 408 ACK STORM, S.L. http://www.ackstorm.es Este mensaje electrónico contiene información de ACK STORM, S.L. que es privada y confidencial, siendo para el uso exclusivo de las personas o entidades arriba mencionadas. Si usted no es el destinatario señalado, le informamos que cualquier divulgación, copia, distribución o uso de los contenidos está prohibida. Si usted ha recibido este mensaje por error, por favor borre su contenido y comuníquenoslo en la dirección [EMAIL PROTECTED] --------------------------------------------------
diff -ur zabbix-1.1.old/debian/zabbix-agent.init zabbix-1.1/debian/zabbix-agent.init --- zabbix-1.1.old/debian/zabbix-agent.init 2006-07-04 10:34:00.000000000 +0200 +++ zabbix-1.1/debian/zabbix-agent.init 2006-07-04 10:35:37.000000000 +0200 @@ -5,6 +5,7 @@ NAME=zabbix_agentd DESC="Zabbix agent" PID=/var/run/zabbix-agent/$NAME.pid +TMP=/tmp/zabbix_agentd.tmp test -f $DAEMON || exit 0 @@ -12,7 +13,7 @@ case "$1" in start) - rm -f $PID + rm -f $PID $TMP echo "Starting $DESC: $NAME" start-stop-daemon --oknodo --start --pidfile $PID \ --exec $DAEMON @@ -20,6 +21,7 @@ stop) echo "Stopping $DESC: $NAME" start-stop-daemon --oknodo --stop --exec $DAEMON + rm -f $TMP ;; restart|force-reload) $0 stop