Hello, and thanks for the comments! First, thank you Andrew for GetCommandLine() - 20 something years on Windows, and I don't remember seeing that one before, certainly made this simpler.
On the subject of the command line in general for a service - I agree that under most normal use a config file should be used, I just wanted to make sure the command line was usable... On the security of self-installing services - if the service is doing much more than installing itself, especially if it contains baked in credentials, ect., that would be a very bad thing. What I've done is essentially the equivalent of sc create|start|stop|delete wrap as a convenience function, nothing more, and the calls execute with the same privilege level a user has available to them at the command line. On the account / password arguments for the service - these are NOT retained by the service in any way - they are merely passed to the SCM as part of service creation in the exact same way the sc command lets you specify the obj and password arguments - they are then used by the SCM to create a security token which is placed in the registry along with the service data, and used when the service is started. On the event log, I hadn't seen that option yet, I'll look for it and not add another one... Kerry On Mon, Mar 29, 2010 at 4:15 PM, Steve Huston <[email protected]> wrote: > Looks nice, Kerry! > > I don't have many answers for you at this point, but one note... > > > Use of event log > > There is already a logging option to put stuff in the windows event log. > > > As a side note, if anyone has any other suggestions related > > to this or other service features, please let me know and > > I'll see if I can add it. > > The installer build is going to be checked in sometime soon. This builds > a WiX-based installer; it may be nice to add the ability to install the > broker as a service during the install. > > -Steve > > > --------------------------------------------------------------------- > Apache Qpid - AMQP Messaging Implementation > Project: http://qpid.apache.org > Use/Interact: mailto:[email protected] > >
