fix snmptrapd init script to survive with empty /etc/sysconfig/snmptrapd
This commit is contained in:
parent
466d568513
commit
c45270a9f9
@ -403,6 +403,7 @@ rm -rf ${RPM_BUILD_ROOT}
|
||||
%changelog
|
||||
* Wed Dec 2 2009 Jan Safranek <jsafrane@redhat.com> 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 <jsafrane@redhat.com> 1:5.5-3
|
||||
- prepare the .spec file for review
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user