update-rc.d is the program (script) which creates the necessary symbolic links to the /etc/rcX.d directories.
Here we are running the script found at /etc/init.d/updatedb_start, within runlevel 6, which is reboot.
Running this will create a symbolic link to the actual script file which lives within /etc/init.d (as it always should).
So, within /etc/rc6.d/ we'll see a symbolic link to our script.
The period at the end of the command is required. Tells update-rc.d that we're finished with the command (no further runlevels to edit).
We're using "stop" instead of "start" because we want to run the script during the killing off scripts part of the rc6.d scripts.
This causes the script to be run with a "stop" parameter, for example: updatedb_start stop
We don't actually use the stop parameter in this case, it's just ignored.
update-rc.d updatedb_start stop 18 6 .