First I would make the following bash script and call it delay:
#!/bin/bash# $1:delay time(s)# $2:command# example:# delay 10 "conky -d"sleep $1exec $2
Then I would make it executable
chmod a+x delay
You could put the command from your comments:
delay 60 "sudo systemctl restart nfs-kernel-server"
at the end of the rc.local file in /etc/init.d/
to have it run 60 seconds after every time the Pi boots up