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



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
For additional commands, e-mail: user-h...@commons.apache.org

Reply via email to