I have been trying to get BIND to run as a windows service, using the “-c PATH” switch to override the default config file path. (I have had this problem with other services too).
I have read that the binPath (saved as the “ImagePath” key in the registry) is not really a bin path, but a command. So there are services with command line arguments (“c:\path\command.exe -X”).
When I run from the command line, the “named.exe -c PATH” arguments work perfectly. When I enter this as the bin path, it is ignored. When I use the Services MSC panel to start the service, I can enter the arguments there on the arguments field on the tab, but this is not useful for startup.
I have even tried putting gibberish into the command line to screw it up, but it is ignored.
I have not seen any information online about how to get this to work.
Does anyone have any ideas? Is there a way to get windows to pass those command line arguments?
And if anyone knows, Is there a way to specify default arguments that can be overridden later on?