prunsrv stop service not able to find springboot package class
Ron ITS <[email protected]> Wed, 11 Dec 2024 16:35:51 +0800
| Newsgroups | gmane.comp.jakarta.commons.user |
|---|---|
| Message-ID | <CAA4fbn4fuWcHk8Yek-zNNkSPzqx5zMe9FEXS=X8bnsGqKCZPpA@mail.gmail.com> |
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