Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Allow to customize the service name during installation

  • Loading branch information...
commit 0055684a04a09c01ba6983d33c40b480ff7af519 1 parent 1e41ef8
@ayende ayende authored
Showing with 2 additions and 1 deletion.
  1. +1 −0  Raven.Server/Program.cs
  2. +1 −1  Raven.Server/ProjectInstaller.cs
View
1  Raven.Server/Program.cs
@@ -104,6 +104,7 @@ private static void InteractiveRun(string[] args)
}},
{"config=", "The config {0:file} to use", path => ravenConfiguration.LoadFrom(path)},
{"install", "Installs the RavenDB service", key => actionToTake= () => AdminRequired(InstallAndStart, key)},
+ {"service-name=", "The {0:service name} to use when installing or uninstalling the service, default to RavenDB", name => ProjectInstaller.SERVICE_NAME = name},
{"uninstall", "Uninstalls the RavenDB service", key => actionToTake= () => AdminRequired(EnsureStoppedAndUninstall, key)},
{"start", "Starts the RavenDB servce", key => actionToTake= () => AdminRequired(StartService, key)},
{"restart", "Restarts the RavenDB service", key => actionToTake= () => AdminRequired(RestartService, key)},
View
2  Raven.Server/ProjectInstaller.cs
@@ -13,7 +13,7 @@ namespace Raven.Server
[RunInstaller(true)]
public partial class ProjectInstaller : Installer
{
- internal const string SERVICE_NAME = "RavenDB";
+ internal static string SERVICE_NAME = "RavenDB";
public ProjectInstaller()
{
Please sign in to comment.
Something went wrong with that request. Please try again.