mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-09-14 12:28:44 +00:00
net-snmp: move persistent dir to /var/lib/net-snmp
Move persistent dir to /var/lib/net-snmp and fix security contexts for them. Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com> Signed-off-by: Jackie Huang <jackie.huang@windriver.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
This commit is contained in:
parent
88a9836158
commit
356c792b1b
@ -28,6 +28,8 @@ case "$1" in
|
|||||||
echo -n " snmptrapd"
|
echo -n " snmptrapd"
|
||||||
fi
|
fi
|
||||||
echo "."
|
echo "."
|
||||||
|
|
||||||
|
test ! -x /sbin/restorecon || /sbin/restorecon -FR /var/lib/net-snmp
|
||||||
;;
|
;;
|
||||||
stop)
|
stop)
|
||||||
echo -n "Stopping network management services:"
|
echo -n "Stopping network management services:"
|
||||||
|
|||||||
@ -38,6 +38,7 @@ EXTRA_OECONF = "--disable-embedded-perl \
|
|||||||
--enable-shared \
|
--enable-shared \
|
||||||
--disable-manuals \
|
--disable-manuals \
|
||||||
--with-defaults \
|
--with-defaults \
|
||||||
|
--with-persistent-directory=${localstatedir}/lib/net-snmp \
|
||||||
${@base_conditional('SITEINFO_ENDIANNESS', 'le', '--with-endianness=little', '--with-endianness=big', d)}"
|
${@base_conditional('SITEINFO_ENDIANNESS', 'le', '--with-endianness=little', '--with-endianness=big', d)}"
|
||||||
|
|
||||||
# net-snmp needs to have mib-modules=smux enabled to enable quagga to support snmp
|
# net-snmp needs to have mib-modules=smux enabled to enable quagga to support snmp
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user