Re: prunsrv stop service not able to find springboot package class

Mark Thomas <[email protected]> Wed, 11 Dec 2024 10:59:27 +0000
Newsgroups gmane.comp.jakarta.commons.user
Message-ID <[email protected]>
Ron,

That configuration doesn't look complete. I'd expect to see some 
definition of the class path in there somewhere.

Is this packaged as a single JAR?

Where is the stop class located?

Mark


On 11/12/2024 08:35, Ron ITS wrote:
> 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
>