Closed Craigology closed 12 years ago
The reboot fixes, this, as well as adding disabled, and delayed-autostart (on .NET 4.0 only).
Sorry, I'm relatively new to the Topshelf community and don't follow - what do you mean by "the reboot fixes this"?
I'm sorry, I should have linked the blog post:
http://blog.phatboyg.com/2012/07/23/rebooting-topshelf-for-version-3/
There is a command-line switch "--autostart", which instructs the installer to configure the service with start mode set to Automatic. There are no command-line switches available to specify an alternate start mode.
InstallBuilder
sets the default start mode to Automatic.Therefore regardless of the presence/absence of "--autostart", the service start mode will always be set to Automatic.
Options (in increasing effort):
InstallBuilder
should set the default start mode to Manual.StartModeExtensions.StartManually()
.Note: unit tests in this area are currently commented-out. See
Configuring_a_service_using_the_runner.Should_not_be_set_to_start_automatically()
.