简体   繁体   中英

daemonUser for upstart not working in sbt-native-packager

I'm using the sbt-native-packager to create a .deb package including all libraries. The generated upstart-script is using the root user which I obviously want to avoid.

I found a hint in the code that there is a daemonUser sbt-setting defined but i cannot set it for my debian packaging.

import com.typesafe.sbt.packager.archetypes._
import com.typesafe.sbt.SbtNativePackager._
import NativePackagerKeys._

JavaServerAppPackaging.settings ++ packageArchetype.java_server ++ Seq(
        packageSummary := "app",
        packageDescription := "app",
        maintainer := orgName,
        daemonUser in Debian := "ubuntu",
        debianPackageDependencies in Debian ++= Seq())

the compile error is: not found: value daemonUser

any suggestion how to set the user for the upstart script?

thanks

The feature to set a daemonUser is simply not published yet.

The IVY file of the current released version shows that it was released on 2013/11/16 whereas the change is from 2013/11/21.

Update: There is a release candidate with more Debian support: https://github.com/sbt/sbt-native-packager/releases/tag/v0.7.0-M1

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM