to add the value to the bottom. Only use this if you know the value is not currently set.
The last method would be if the value currently exists, where you could use a perl regex (Assuming your name/value have basic characters, else this might not work):
Once the variable is set, the next step is to ensure it's set.
For that, type:
cd /usr/local/directadmin
./directadmin c | grep ^name=
to ensure you see the value specified.
If you do not see the value set, then make sure the end of the directadmin.conf has a trailing newline character.
What this means is that there should be a blank line at the bottom of the file, because when reading a config file, DA defines a "line" has ending with a newline character (the 'enter' key).
Last step is to restart DA to load in your setting:
cd /usr/local/directadmin
echo "action=directadmin&value=restart" >> data/task.queue; ./dataskq d2000