diff options
Diffstat (limited to 'meta/recipes-connectivity/nfs-utils/nfs-utils_2.3.3.bb')
-rw-r--r-- | meta/recipes-connectivity/nfs-utils/nfs-utils_2.3.3.bb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/nfs-utils/nfs-utils_2.3.3.bb b/meta/recipes-connectivity/nfs-utils/nfs-utils_2.3.3.bb index ac4437b925..28f98980d4 100644 --- a/meta/recipes-connectivity/nfs-utils/nfs-utils_2.3.3.bb +++ b/meta/recipes-connectivity/nfs-utils/nfs-utils_2.3.3.bb | |||
@@ -119,6 +119,9 @@ do_compile_prepend() { | |||
119 | make clean | 119 | make clean |
120 | } | 120 | } |
121 | 121 | ||
122 | # Works on systemd only | ||
123 | HIGH_RLIMIT_NOFILE ??= "4096" | ||
124 | |||
122 | do_install_append () { | 125 | do_install_append () { |
123 | install -d ${D}${sysconfdir}/init.d | 126 | install -d ${D}${sysconfdir}/init.d |
124 | install -m 0755 ${WORKDIR}/nfsserver ${D}${sysconfdir}/init.d/nfsserver | 127 | install -m 0755 ${WORKDIR}/nfsserver ${D}${sysconfdir}/init.d/nfsserver |
@@ -133,6 +136,7 @@ do_install_append () { | |||
133 | install -m 0644 ${WORKDIR}/nfs-statd.service ${D}${systemd_unitdir}/system/ | 136 | install -m 0644 ${WORKDIR}/nfs-statd.service ${D}${systemd_unitdir}/system/ |
134 | sed -i -e 's,@SBINDIR@,${sbindir},g' \ | 137 | sed -i -e 's,@SBINDIR@,${sbindir},g' \ |
135 | -e 's,@SYSCONFDIR@,${sysconfdir},g' \ | 138 | -e 's,@SYSCONFDIR@,${sysconfdir},g' \ |
139 | -e 's,@HIGH_RLIMIT_NOFILE@,${HIGH_RLIMIT_NOFILE},g' \ | ||
136 | ${D}${systemd_unitdir}/system/*.service | 140 | ${D}${systemd_unitdir}/system/*.service |
137 | if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then | 141 | if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then |
138 | install -m 0644 ${WORKDIR}/proc-fs-nfsd.mount ${D}${systemd_unitdir}/system/ | 142 | install -m 0644 ${WORKDIR}/proc-fs-nfsd.mount ${D}${systemd_unitdir}/system/ |