Actually, there’s only 1 line to change (the one in bold in that code block above):
That is, find the line that says " nice -n -20 /usr/sbin/smbd -D"
and remove “nice -n -20” so that it just says " /usr/sbin/smbd -D"
After saving the file, type “reboot” and the new setting will take effect after the WD finishes restarting.