Fix logging when using init.d

Apparently the daemonize flag needs the log file as a parameter (even if logto is set) in order to properly log. I made it a parameter primarily so it's easier to pass it around to the various templates.