diff options
author | Jackie Huang <jackie.huang@windriver.com> | 2015-01-16 14:14:00 +0800 |
---|---|---|
committer | Joe MacDonald <joe_macdonald@mentor.com> | 2015-03-11 19:18:08 -0400 |
commit | 356c792b1bf70141bd75e11353d8f3b146aaee52 (patch) | |
tree | 8298ee0c69e529aae04e45f50686519e9105b71c /meta-networking/recipes-protocols/net-snmp/files | |
parent | 88a9836158c6406ee8dd21bb5d4d04025e193251 (diff) | |
download | meta-openembedded-contrib-356c792b1bf70141bd75e11353d8f3b146aaee52.tar.gz |
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>
Diffstat (limited to 'meta-networking/recipes-protocols/net-snmp/files')
-rwxr-xr-x | meta-networking/recipes-protocols/net-snmp/files/init | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meta-networking/recipes-protocols/net-snmp/files/init b/meta-networking/recipes-protocols/net-snmp/files/init index 434b2fa3f2..6b02570c66 100755 --- a/meta-networking/recipes-protocols/net-snmp/files/init +++ b/meta-networking/recipes-protocols/net-snmp/files/init @@ -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:" |