Manually install services using nssm

Install using nssm.exe

Headsup: this file is not needed if i.e. the Via.Index.Service or Via.Authority.Service is to be installed manually using the steps further down in this article.

Steps:

  1. Copy nssm to your server (https://nssm.cc/download)
  2. Run nssm.exe install servicename
  3. Fill in your service details


Installing the Via.Index.Service manually

Go to C:\Program Files\ayfie\Locator\SOLR\bin

Run command: Via.Index.Service.exe install Via.Index.Service

TabSettingValue
ApplicationPathC:\Program Files\ayfie\Locator\SOLR\bin\solr.cmd
ApplicationStartup directoryC:\Program Files\ayfie\Locator\SOLR\bin
ApplicationArgumentsstart -f
DetailsDisplay nameLocator Index Service
DetailsDescriptionLocator Index and Search Service
Log onThis AccountNT AUTHORITY\LOCAL SERVICE or the AD service user if Microsoft SQL backend
Log onPassword<Empty>
Dependencies
Leave empty
ProcessPriorityNormal
ProcessConsole windowsDisabled
ProcessAffinityAll processors enabled
ShutdownGenerate Control-C Timeout60000 ms
ShutdownSend WM_CLOSE to windows1500 ms
ShutdownPost WM_QUIT to threads60000 ms
Exit actions
Use default values
I/OInput (stdin)C:\Program Files\ayfie\Locator\Solr\Data\solr_stdin_yes.txt
I/OOutput (stdout)Leave empty
I/OError (stderr)Leave empty
File rotation
Use default values
Environment
Use default values


Installing the Via.Authority.Service manually

Go to C:\Program Files\ayfie\Locator\AuthorityService

Run command: ayfie.AuthorityService.Wrapper.exe install Via.Authority.Service

TabSettingValue
ApplicationPathC:\Program Files\ayfie\Locator\AuthorityService\Ayfie.Infrastructure.Auth.AuthorityService.Portable.exe
ApplicationStartup directoryC:\Program Files\ayfie\Locator\AuthorityService
ApplicationArgumentsLeave empty
DetailsDisplay nameayfie Authority Service
DetailsDescriptionThe ayfie Authority Service
Log onThis AccountNT AUTHORITY\LOCAL SERVICE or the AD service user if Microsoft SQL backend
Log onPassword<Empty>
Dependencies
Leave empty
ProcessPriorityNormal
ProcessConsole windowsDisabled
ProcessAffinityAll processors enabled
ShutdownGenerate Control-C Timeout60000 ms
ShutdownSend WM_CLOSE to windows1500 ms
ShutdownPost WM_QUIT to threads60000 ms
Exit actions
Use default values
I/OInput (stdin)Leave empty
I/OOutput (stdout)C:\ProgramData\ayfie\Locator\Log\Ayfie.Infrastructure.Auth.AuthorityService.Portable_stdout.log

Verify that this is the path of the Log folder.
I/OError (stderr)C:\ProgramData\ayfie\Locator\Log\Ayfie.Infrastructure.Auth.AuthorityService.Portable_stderr.log

Verify that this is the path of the Log folder.
File rotationReplace existing Output and/or Error filesDisabled
File rotationRotate FilesEnabled
File rotationRotate while service is runningEnabled
File rotationRestrict rotation to folder older than0 seconds
File rotationRestrict rotation to folder bigger than20971520 bytes
EnvironmentEnvironment variablesASPNETCORE_ENVIRONMENT=Custom
EnvironmentReplace default environmentDisabled

Installing the Via.ZooKeeper.Service manually

Go to C:\Program Files\ayfie\Locator\ZooKeeper\bin

Run command: Via.ZooKeeper.Service.exe install Via.ZooKeeper.Service

TabSettingValue
ApplicationPathC:\Program Files\ayfie\Locator\ZooKeeper\bin\zkServer.cmd
ApplicationStartup directoryC:\Program Files\ayfie\Locator\ZooKeeper\bin\
ApplicationArgumentsstart
DetailsDisplay nameLocator ZooKeeper Service
DetailsDescriptionThe Locator ZooKeeper Service
Log onThis AccountNT AUTHORITY\LOCAL SERVICE or the AD service user if Microsoft SQL backend
Log onPassword<Empty>
Dependencies
Leave empty
ProcessPriorityNormal
ProcessConsole windowsDisabled
ProcessAffinityAll processors enabled
ShutdownGenerate Control-C Timeout60000 ms
ShutdownSend WM_CLOSE to windows1500 ms
ShutdownPost WM_QUIT to threads60000 ms
Exit actions
Use default values
I/OInput (stdin)C:\Program Files\ayfie\Locator\ZooKeeper\data\zookeeper_stdin_yes.txt
I/OOutput (stdout)Leave empty
I/OError (stderr)Leave empty
File rotationReplace existing Output and/or Error filesDisabled
File rotationRotate FilesDisabled
File rotationRotate while service is runningDisabled
File rotationRestrict rotation to folder older than0 seconds
File rotationRestrict rotation to folder bigger than0 bytes
EnvironmentEnvironment variables
EnvironmentReplace default environmentDisabled


ayfie