services: nfs: Run rpc.mountd in foreground.

Fixes <https://bugs.gnu.org/39708>.

Shepherd doesn't keep track of processes that fork themselves and would
disable the process after restarting it a couple times.

* gnu/services/nfs.scm (nfs-shepherd-services): Invoke rpc.mountd with the
'--foreground' option.
This commit is contained in:
Maxim Cournoyer 2020-03-07 23:58:39 -05:00
parent be3908fa14
commit 5fdc5b2d57
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -299,6 +299,7 @@ (define (nfs-shepherd-services config)
(start
#~(make-forkexec-constructor
(list #$(file-append nfs-utils "/sbin/rpc.mountd")
"--foreground"
#$@(if (member 'mountd debug)
'("--debug" "all")
'())