18 lines
264 B
Plaintext
18 lines
264 B
Plaintext
|
[main]
|
||
|
@type = oneshot
|
||
|
@description = "nfs export service"
|
||
|
@user = ( root )
|
||
|
@depends = ( rpcbind nfs-modules nfs-mounts )
|
||
|
|
||
|
[start]
|
||
|
@build = auto
|
||
|
@execute = (
|
||
|
if { exportfs -ra }
|
||
|
rpc.nfsd -- 3)
|
||
|
|
||
|
[stop]
|
||
|
@build = auto
|
||
|
@execute = (
|
||
|
if { rpc.nfsd -- 0 }
|
||
|
exportfs -a )
|