This is more a theory question than coding question. At least in the sense that no code exists, and shouldn't need to in order to answer the question.
If one has a script, that they want to run as a deamon at startup, in linux and windows 2000, how would this be done?
in linux it would start via the /etc/init.d/ same as other system deamons. On windows it would need to start via the system services.