VorlonCD/bi-aidetection

native service support planned?

Opened this issue · 4 comments

Do you plan to add native service support?
I mean I am running it as service using NSSM but I can't tell if the service is running fine without errors or anything.. it is difficult to monitor.

Planed, yes. Some of the framework is in place but I think I got stuck on inter-process communication between service and main process and never got back to it. Will keep it in mind.

What's the best way to run the software as a service meanwhile? NSSM?
It does not seem reliable:

  1. Before opening AI Tools I top the service but in AI tools, I can't seem to find logs that occurred during the time the software was run as a service.
  2. I have defined to execute a bat file (that send email) when detection occurs. It works fine when I use "Test" button but when running in service, it does not see to work.. never received an email when there has been detections.
    Tried to look at the logs but the issue explained in 1, I don't have any logs.

Remember that you cannot run the UI version in the task tray at the same time as the service. If you will be running the UI, you have to stop the service first.

After running as a service for a while, use EVERYTHING search to search for AITOOL*.LOG and AITOOL*.LOG.ZIP - maybe running as a service is creating the log under a different user or even under the C:\WINDOWS folder?

The usual location is \AITOOL_SETTINGS\LOGS\

Maybe its not really running as a service correctly due to credential issues?

Finally, try NOT running as a service. Rather, enable the AITOOL "Start with user login" option along with enabling auto login in windows. (I always have to google a bit to find the right method to automatically log into windows as there are several ways of doing it depending on version of Windows)

ok thx man! btw very great improvements you made to AItool :)