Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[SOLVED] Ever since upgrading to Debian 11, NFS server service doesn't start at boot

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
road hazard
Posts: 40
Joined: 2017-06-21 19:36

[SOLVED] Ever since upgrading to Debian 11, NFS server service doesn't start at boot

#1 Post by road hazard »

I have 2 PCs that are pretty much identical. Both systems had the NFS server service running perfectly and were using Debian 10 up until a few weeks ago when I upgraded them to Debian 11.

Ever since the upgrade, PC 'A' fails to start the NFS server service.

I made sure the nfs-kernel-server service was enabled:

Code: Select all

sudo systemctl enable nfs-kernel-server

Synchronizing state of nfs-kernel-server.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable nfs-kernel-server
and started the service:

Code: Select all

sudo systemctl start nfs-kernel-server
After that, the NFS server is up and running.........until the next reboot.

My secondary Debian 11 system does not exhibit this behaviour. The NFS server on it survives reboots perfectly so whatever is wrong, I don't think it's any sort of Debian 11 bug.

Disclaimer: Been using Debian for a couple of years now but I'm by no means an expert or advanced user so please forgive me if this is an easy fix.
Last edited by road hazard on 2021-09-06 12:17, edited 1 time in total.

arzgi
Posts: 1185
Joined: 2008-02-21 17:03
Location: Finland
Been thanked: 31 times

Re: Ever since upgrading to Debian 11, NFS server service doesn't start at boot

#2 Post by arzgi »

https://wiki.debian.org/systemd/Services

and from the link above:

Code: Select all

[Service]
Type=simple
[Restart=always # <== this
ExecStart=/usr/local/bin/myservice

road hazard
Posts: 40
Joined: 2017-06-21 19:36

Re: Ever since upgrading to Debian 11, NFS server service doesn't start at boot

#3 Post by road hazard »

arzgi wrote: 2021-09-04 16:17 https://wiki.debian.org/systemd/Services

and from the link above:

Code: Select all

[Service]
Type=simple
[Restart=always # <== this
ExecStart=/usr/local/bin/myservice
Thanks for the assist! I added this to the service and all is well:

Code: Select all

ExecStartPre=/bin/sleep 15

Post Reply