foxygen foxygen - 19 days ago 4
Scala Question

Is there a way to override the init script template in sbt-native-packager?

Using sbt-native-packager


sbt-native-packager uses this init script template to create a startup script (in
) when building an rpm. I would like to override this init script with one of my own, but I can't seem to locate the best way to do this. It's very possible that I'm just overlooking something (I am new to Scala, and perusing the source is a little difficult), so any help would be greatly appreciated.

I just want the contents of the init script installed with the rpm to be taken from a file that I specify in the build.sbt file. Any help is greatly appreciated (the more detail you provide, the better).

Thanks in advance.


You should put your init script to scr/templates/systemloader/systemv. Take a look to for more details.