Using sbt-native-packager 1.0.0
sbt-native-packager uses this init script template to create a startup script (in /etc/init.d/<package-name>
) 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 http://www.scala-sbt.org/sbt-native-packager/archetypes/systemloaders.html#override-start-script for more details.