nfs-utils: systemd fixes
- Start daemons by default like the initscripts do, but only if /etc/exports exists. - Inform systemd.bbclass about nfs-utils-client package. (From OE-Core rev: 94602d8ced3a8fd033de93b47320c94db6de8755) Signed-off-by: Andreas Oberritter <obi@opendreambox.org> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
b4da2b0040
commit
44ed428c10
|
@ -2,6 +2,7 @@
|
|||
Description=NFS Mount Daemon
|
||||
After=rpcbind.service nfs-server.service
|
||||
Requires=rpcbind.service nfs-server.service
|
||||
ConditionPathExists=@SYSCONFDIR@/exports
|
||||
|
||||
[Service]
|
||||
EnvironmentFile=-@SYSCONFDIR@/nfs-utils.conf
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
Description=NFS Server
|
||||
Requires=rpcbind.service nfs-mountd.service
|
||||
After=rpcbind.service
|
||||
ConditionPathExists=@SYSCONFDIR@/exports
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
|
|
|
@ -48,9 +48,9 @@ INITSCRIPT_PARAMS_${PN}-client = "defaults 19 21"
|
|||
|
||||
inherit autotools-brokensep update-rc.d systemd pkgconfig
|
||||
|
||||
SYSTEMD_PACKAGES = "${PN} ${PN}-client"
|
||||
SYSTEMD_SERVICE_${PN} = "nfs-server.service nfs-mountd.service"
|
||||
SYSTEMD_SERVICE_${PN}-client = "nfs-statd.service"
|
||||
SYSTEMD_AUTO_ENABLE = "disable"
|
||||
|
||||
# --enable-uuid is need for cross-compiling
|
||||
EXTRA_OECONF = "--with-statduser=rpcuser \
|
||||
|
|
Loading…
Reference in New Issue