10-04-2019, 05:32 PM
(10-03-2019, 02:17 PM)kudzu Wrote: I dont believe the Delphi service classes are designed to provide 2 services from a single exe.
You can have multiple TService classes in the same EXE, and they are registered by default to run in separate processes when started by the SCM.
Running multiple instances of the same TService class is not "officially" supported, but that is very easy to work around by simply manipulating the TService.Name property at runtime, such as the TService.OnCreate event using command-line parameters to specify the desired name so multiple instances are registered in the SCM with different names.