daemon arguments added for writeAutoRun function

Added the ability to use arguments in the init script.