nfs-utils-server: use exportfs after start/stop in nfsd.service.
This commit is contained in:
parent
6a97b773ea
commit
41bad8dde1
2 changed files with 3 additions and 1 deletions
|
@ -6,7 +6,9 @@ Requires=rpcbind.service
|
||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
ExecStart=/usr/sbin/rpc.nfsd
|
ExecStart=/usr/sbin/rpc.nfsd
|
||||||
|
ExecStartPost=/usr/sbin/exportfs -a
|
||||||
ExecStop=/usr/sbin/rpc.nfsd 0
|
ExecStop=/usr/sbin/rpc.nfsd 0
|
||||||
|
ExecStopPost=/usr/sbin/exportfs -a -u
|
||||||
RemainAfterExit=yes
|
RemainAfterExit=yes
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'nfs-utils'
|
# Template file for 'nfs-utils'
|
||||||
pkgname=nfs-utils
|
pkgname=nfs-utils
|
||||||
version=1.2.6
|
version=1.2.6
|
||||||
revision=3
|
revision=4
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--with-statduser=nobody --enable-gss --enable-nfsv4
|
configure_args="--with-statduser=nobody --enable-gss --enable-nfsv4
|
||||||
--with-statedir=/var/lib/nfs --enable-libmount-mount
|
--with-statedir=/var/lib/nfs --enable-libmount-mount
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue