These are chat archives for sbt/sbt-native-packager

22nd
Aug 2016
Simon Hafner
@reactormonk
Aug 22 2016 17:39
How would I add an After=postgresql to my systemd startup script?
Nepomuk Seiler
@muuki88
Aug 22 2016 18:16

Currently there is no way to do this. However with the new 1.2.x version makes this really easy to implement.
There is now a separate systemd plugin: https://github.com/sbt/sbt-native-packager/blob/master/src/main/scala/com/typesafe/sbt/packager/archetypes/systemloader/SystemdPlugin.scala

where you could a setting to add a placeholder to the linuxScriptSettings and use it in the template:
https://github.com/sbt/sbt-native-packager/blob/master/src/main/resources/com/typesafe/sbt/packager/archetypes/systemloader/systemd/start-template