Skip to content

Switching Maintenance mode on/off

You can put the server into maintenance mode via the command line or exit maintenance mode via the command line.

Enter the following command to put the Server into Maintenance mode:

{Drive}:\{Program directory of the server}\VDogMasterService.exe /at:s /rd:{Drive}:\vdServerArchive /maintenance:on

Enter the following command to exit maintenance mode:

{Drive}:\{Program directory of the server}\VDogMasterService.exe /at:s /rd:{Drive}:\vdServerArchive /maintenance:off

Info

Paths that contain spaces must be enclosed in quotation marks.

Info

Under Windows 7 and Windows Server 2008 R2, the command line must be Run as administrator.

If maintenance mode is to be switched on or off using a batch file, the status of the server can be queried as follows:

  • if ERRORLEVEL 0 ECHO "Error message" >> Log file.txt Action successful
  • if ERRORLEVEL 1 ECHO "Error message" >> Log file.txt Action failed

Examples

Put server into Maintenance mode:

"C:\Program Files\vdogServer\VDogMasterService.exe" /at:s /rd:C:\vdServerArchive /maintenance:on

Exit the Maintenance mode:

"C:\Program Files\vdogServer\VDogMasterService.exe" /at:s /rd:C:\vdServerArchive /maintenance:off

Set the server to maintenance mode using the bat file:

@echo off

REM Maintenance Mode on

"C:\Program Files\vdogServer\VDogMasterService.exe" /at:s /rd:C:\vdServerArchive /maintenance:on

if ERRORLEVEL 1 ECHO "Server was not properly put into Maintenance mode." >> d:\log.txt

if ERRORLEVEL 0 ECHO "Server was properly put into Maintenance mode." >> d:\log.txt

Exit maintenance mode via bat file:

@echo off

REM Maintenance Mode off

"C:\Program Files\vdogServer\VDogMasterService.exe" /at:s /rd:C:\vdServerArchive /maintenance:off

if ERRORLEVEL 1 ECHO "Server was not properly taken out of Maintenance mode." >> d:\log.txt

if ERRORLEVEL 0 ECHO "Server was properly taken out of Maintenance mode." >> d:\log.txt