summaryrefslogtreecommitdiffstats
path: root/MCServer
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2015-04-03 10:35:41 +0200
committerMattes D <github@xoft.cz>2015-04-03 10:35:41 +0200
commit11f5ee27abd47204c6f973cec43e397732192545 (patch)
tree6af0b9ac70329a7e83ff5d68f548a6081c32b633 /MCServer
parentQtBiomeVisualiser: Fixed compilation and INI loading. (diff)
parentWorking as a Windows service. Starts and stops correctly. (diff)
downloadcuberite-11f5ee27abd47204c6f973cec43e397732192545.tar
cuberite-11f5ee27abd47204c6f973cec43e397732192545.tar.gz
cuberite-11f5ee27abd47204c6f973cec43e397732192545.tar.bz2
cuberite-11f5ee27abd47204c6f973cec43e397732192545.tar.lz
cuberite-11f5ee27abd47204c6f973cec43e397732192545.tar.xz
cuberite-11f5ee27abd47204c6f973cec43e397732192545.tar.zst
cuberite-11f5ee27abd47204c6f973cec43e397732192545.zip
Diffstat (limited to 'MCServer')
-rw-r--r--MCServer/delete_windows_service.cmd4
-rw-r--r--MCServer/install_windows_service.cmd7
2 files changed, 11 insertions, 0 deletions
diff --git a/MCServer/delete_windows_service.cmd b/MCServer/delete_windows_service.cmd
new file mode 100644
index 000000000..ab6238e2f
--- /dev/null
+++ b/MCServer/delete_windows_service.cmd
@@ -0,0 +1,4 @@
+@echo off
+set SERVICENAME="MCServer"
+
+sc delete %SERVICENAME% \ No newline at end of file
diff --git a/MCServer/install_windows_service.cmd b/MCServer/install_windows_service.cmd
new file mode 100644
index 000000000..ba8a8c128
--- /dev/null
+++ b/MCServer/install_windows_service.cmd
@@ -0,0 +1,7 @@
+rem Alter this if you need to install multiple instances.
+@echo off
+set SERVICENAME="MCServer"
+
+set CURRENTDIR=%CD%
+sc create %SERVICENAME% binPath= "%CURRENTDIR%\MCServer.exe /service" start= auto DisplayName= %SERVICENAME%
+sc description %SERVICENAME% "Minecraft server instance" \ No newline at end of file