Just as I had learned enough about SystemStarter to build a startup script to let Chotha run as a mac os service, I learn that SystemStarter has been deprecated and we should all now use launchd.
Here are some tips that might help others. The name of my launchd plist is com.bengalbionics.chotha.plist
plutil -lint com.bengalibionics.chotha.plist will scan the plist file for any errors
sudo launchctl log level debug will enable you to view some errors on the system.log
sudo launchctl log level error will set the log level back
I could not get things to work by setting the Program to /path/to/python and /path/to/chotha.py as ProgramArguments
I had to set both as ProgramArguments.
The full plist is given below:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">