diff options
3 files changed, 3 insertions, 1 deletions
diff --git a/meta/recipes-connectivity/nfs-utils/nfs-utils/nfs-mountd.service b/meta/recipes-connectivity/nfs-utils/nfs-utils/nfs-mountd.service index 613ddc003a..28b7388f67 100644 --- a/meta/recipes-connectivity/nfs-utils/nfs-utils/nfs-mountd.service +++ b/meta/recipes-connectivity/nfs-utils/nfs-utils/nfs-mountd.service | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Description=NFS Mount Daemon | 2 | Description=NFS Mount Daemon |
| 3 | After=rpcbind.service nfs-server.service | 3 | After=rpcbind.service nfs-server.service |
| 4 | Requires=rpcbind.service nfs-server.service | 4 | Requires=rpcbind.service nfs-server.service |
| 5 | ConditionPathExists=@SYSCONFDIR@/exports | ||
| 5 | 6 | ||
| 6 | [Service] | 7 | [Service] |
| 7 | EnvironmentFile=-@SYSCONFDIR@/nfs-utils.conf | 8 | EnvironmentFile=-@SYSCONFDIR@/nfs-utils.conf |
diff --git a/meta/recipes-connectivity/nfs-utils/nfs-utils/nfs-server.service b/meta/recipes-connectivity/nfs-utils/nfs-utils/nfs-server.service index 147d7a7b5f..b9dfe74273 100644 --- a/meta/recipes-connectivity/nfs-utils/nfs-utils/nfs-server.service +++ b/meta/recipes-connectivity/nfs-utils/nfs-utils/nfs-server.service | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | Description=NFS Server | 2 | Description=NFS Server |
| 3 | Requires=rpcbind.service nfs-mountd.service | 3 | Requires=rpcbind.service nfs-mountd.service |
| 4 | After=rpcbind.service | 4 | After=rpcbind.service |
| 5 | ConditionPathExists=@SYSCONFDIR@/exports | ||
| 5 | 6 | ||
| 6 | [Service] | 7 | [Service] |
| 7 | Type=oneshot | 8 | Type=oneshot |
diff --git a/meta/recipes-connectivity/nfs-utils/nfs-utils_1.3.4.bb b/meta/recipes-connectivity/nfs-utils/nfs-utils_1.3.4.bb index 4d6d8080f4..d4b401efa0 100644 --- a/meta/recipes-connectivity/nfs-utils/nfs-utils_1.3.4.bb +++ b/meta/recipes-connectivity/nfs-utils/nfs-utils_1.3.4.bb | |||
| @@ -48,9 +48,9 @@ INITSCRIPT_PARAMS_${PN}-client = "defaults 19 21" | |||
| 48 | 48 | ||
| 49 | inherit autotools-brokensep update-rc.d systemd pkgconfig | 49 | inherit autotools-brokensep update-rc.d systemd pkgconfig |
| 50 | 50 | ||
| 51 | SYSTEMD_PACKAGES = "${PN} ${PN}-client" | ||
| 51 | SYSTEMD_SERVICE_${PN} = "nfs-server.service nfs-mountd.service" | 52 | SYSTEMD_SERVICE_${PN} = "nfs-server.service nfs-mountd.service" |
| 52 | SYSTEMD_SERVICE_${PN}-client = "nfs-statd.service" | 53 | SYSTEMD_SERVICE_${PN}-client = "nfs-statd.service" |
| 53 | SYSTEMD_AUTO_ENABLE = "disable" | ||
| 54 | 54 | ||
| 55 | # --enable-uuid is need for cross-compiling | 55 | # --enable-uuid is need for cross-compiling |
| 56 | EXTRA_OECONF = "--with-statduser=rpcuser \ | 56 | EXTRA_OECONF = "--with-statduser=rpcuser \ |
