From c45270a9f9059efec6f4adccf23bf5b91311f18b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20=C5=A0afr=C3=A1nek?= Date: Thu, 3 Dec 2009 14:28:21 +0000 Subject: [PATCH] fix snmptrapd init script to survive with empty /etc/sysconfig/snmptrapd --- net-snmp.spec | 1 + net-snmptrapd.init | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/net-snmp.spec b/net-snmp.spec index c5ad76b..1a83f1f 100644 --- a/net-snmp.spec +++ b/net-snmp.spec @@ -403,6 +403,7 @@ rm -rf ${RPM_BUILD_ROOT} %changelog * Wed Dec 2 2009 Jan Safranek 1:5.5-4 - fix udpTable indexes on big-endian systems (#543352) +- fix snmptrapd init script to survive with empty /etc/sysconfig/snmptrapd * Wed Nov 25 2009 Jan Safranek 1:5.5-3 - prepare the .spec file for review diff --git a/net-snmptrapd.init b/net-snmptrapd.init index 1f70775..55a786c 100755 --- a/net-snmptrapd.init +++ b/net-snmptrapd.init @@ -26,10 +26,9 @@ # source function library . /etc/init.d/functions +OPTIONS="-Lsd -p /var/run/snmptrapd.pid" if [ -e /etc/sysconfig/snmptrapd ]; then . /etc/sysconfig/snmptrapd -else - OPTIONS="-Lsd -p /var/run/snmptrapd.pid" fi RETVAL=0