I have a apache camel in java springboot application and need to manage windows service stop/start using prunsrv. For start is okay as I configured to use the JarLauncher class ( StartClass=org.springframework.boot.loader.JarLauncher) . However for service stop, it's not working and it failed to find the stop class. I tried already to use a classifier so the class will not be under BOOT-INF package but still not working.
below is the configuration: --StartClass=org.springframework.boot.loader.JarLauncher ^ --StopClass=com.link.mftagent.daemon.AgentDaemon ^ --StopMethod=stop ^ --StopTimeout=30 ^ --ServiceUser=LocalSystem ^ --LogLevel=debug