mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-05-06 16:58:24 +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:
committed by
Joe MacDonald
parent
88a9836158
commit
356c792b1b
@@ -28,6 +28,8 @@ case "$1" in
|
||||
echo -n " snmptrapd"
|
||||
fi
|
||||
echo "."
|
||||
|
||||
test ! -x /sbin/restorecon || /sbin/restorecon -FR /var/lib/net-snmp
|
||||
;;
|
||||
stop)
|
||||
echo -n "Stopping network management services:"
|
||||
|
||||
@@ -38,6 +38,7 @@ EXTRA_OECONF = "--disable-embedded-perl \
|
||||
--enable-shared \
|
||||
--disable-manuals \
|
||||
--with-defaults \
|
||||
--with-persistent-directory=${localstatedir}/lib/net-snmp \
|
||||
${@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
|
||||
|
||||
Reference in New Issue
Block a user