You are confusing startup items and launchd jobs. A startup item is a special kind of bundle with certain properties. This is deprecated technology. You want to write a launch daemon. How to do this has been answered here. There are also some launchd GUIs out there which can help you to achieve your goal.
Should your job still fail make sure to set StandardErrorPath
and StandardOutPath
. Check those files to find out what went wrong.