Please don’t forget to set the execute bit on the script to be able to use it:

sudo chmod +x /usr/local/bin/dspam_startup

Next we need to create the StartupItem scripts that are called during boot and shutdown processes. To do this you need to download the Dspam-startup.tar archive and extract as root into ‘/Library/StartupItems’.

The file StartupParameters.plist will help in setting the correct order for programs to start to fulfill any dependencies. DSpam requires MySQL to be running and this file will help to accomplish this, the content should look like: