I'm just curious if there is some nice way to do that with Akka packaging.
I found some examples here, but it was created for rpm
build and I'm using these two plugins in my build.sbt
:
.enablePlugins(AkkaAppPackaging)
.enablePlugins(UniversalPlugin)
Actually I figured out one workaround by copying sigar libraries manually to directory where application starter script is generated.
There is also a need to set -Djava.library.path=./sigar
to appropriate directory where sigar libraries are located, this can be set in build.sbt
or changed later manually in generated scripts, by changing the JAVA_OPTS
.