1) Edit /etc/nvidia/gridd.conf and set EnableUI=FALSE
2) Restart nvidia-gridd service OR restart the system.
3) Check if license is acquired successfully by checking the system logs as shown below
[nvidia@localhost ~]$ sudo grep gridd /var/log/messages
Aug 5 15:40:06 localhost nvidia-gridd: Started (4293)
Aug 5 15:40:24 localhost nvidia-gridd: License acquired successfully.