You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
startRunlevels in Debian<<= (serverLoading in Debian) apply defaultStartRunlevels,
109
+
stopRunlevels in Debian<<= (serverLoading in Debian) apply defaultStopRunlevels,
110
+
requiredStartFacilities in Debian<<= (serverLoading in Debian) apply defaultFacilities,
111
+
requiredStopFacilities in Debian<<= (serverLoading in Debian) apply defaultFacilities,
66
112
linuxJavaAppStartScriptBuilder in Debian:=JavaAppStartScript.Debian,
67
-
serverLoading :=Upstart,
68
113
// === Startscript creation ===
69
-
linuxScriptReplacements in Debian<++= (requiredStartFacilities in Debian, requiredStopFacilities in Debian, startRunlevels in Debian, stopRunlevels in Debian) apply {
linuxScriptReplacements in Debian<++= (requiredStartFacilities in Debian, requiredStopFacilities in Debian, startRunlevels in Debian, stopRunlevels in Debian, serverLoading in Debian) apply
115
+
makeStartScriptReplacements,
76
116
linuxStartScriptTemplate in Debian<<= (serverLoading in Debian, sourceDirectory, linuxJavaAppStartScriptBuilder in Debian) map {
77
117
(loader, dir, builder) => builder.defaultStartScriptTemplate(loader, dir /"templates"/"start")
importRpmPlugin.Names.{ Pre, Post, Preun, Postun }
95
135
Seq(
96
-
linuxJavaAppStartScriptBuilder in Rpm:=JavaAppStartScript.Rpm,
97
136
serverLoading in Rpm:=SystemV,
98
-
137
+
startRunlevels in Rpm<<= (serverLoading in Debian) apply defaultStartRunlevels,
138
+
stopRunlevels in Rpm<<= (serverLoading in Debian) apply defaultStopRunlevels,
139
+
requiredStartFacilities in Rpm<<= (serverLoading in Rpm) apply defaultFacilities,
140
+
requiredStopFacilities in Rpm<<= (serverLoading in Rpm) apply defaultFacilities,
141
+
linuxJavaAppStartScriptBuilder in Rpm:=JavaAppStartScript.Rpm,
142
+
linuxScriptReplacements in Rpm<++= (requiredStartFacilities in Rpm, requiredStopFacilities in Rpm, startRunlevels in Rpm, stopRunlevels in Rpm, serverLoading in Rpm) apply
143
+
makeStartScriptReplacements,
99
144
// === Startscript creation ===
100
145
linuxStartScriptTemplate in Rpm<<= (serverLoading in Rpm, sourceDirectory, linuxJavaAppStartScriptBuilder in Rpm) map {
Copy file name to clipboardexpand all lines: src/main/scala/com/typesafe/sbt/packager/linux/Keys.scala
+4-4
Original file line number
Diff line number
Diff line change
@@ -16,10 +16,10 @@ trait Keys {
16
16
valdaemonGroup=SettingKey[String]("daemon-group", "Group to start application daemon")
17
17
valdaemonShell=SettingKey[String]("daemon-shell", "Shell provided for the daemon user")
18
18
valserverLoading=SettingKey[ServerLoader]("server-loader", "Loading system to be used for application start script")
19
-
valstartRunlevels=SettingKey[Seq[Int]]("start-runlevels", "Sequence of runlevels on which application will start up")
20
-
valstopRunlevels=SettingKey[Seq[Int]]("stop-runlevels", "Sequence of runlevels on which application will stop")
21
-
valrequiredStartFacilities=SettingKey[Seq[String]]("required-start-facilities", "Names of system services that should be provided at application start")
22
-
valrequiredStopFacilities=SettingKey[Seq[String]]("required-stop-facilities", "Names of system services that should be provided at application stop")
19
+
valstartRunlevels=SettingKey[String]("start-runlevels", "Sequence of runlevels on which application will start up")
20
+
valstopRunlevels=SettingKey[String]("stop-runlevels", "Sequence of runlevels on which application will stop")
21
+
valrequiredStartFacilities=SettingKey[String]("required-start-facilities", "Names of system services that should be provided at application start")
22
+
valrequiredStopFacilities=SettingKey[String]("required-stop-facilities", "Names of system services that should be provided at application stop")
23
23
vallinuxPackageMappings=TaskKey[Seq[LinuxPackageMapping]]("linux-package-mappings", "File to install location mappings including owner and privileges.")
24
24
vallinuxPackageSymlinks=TaskKey[Seq[LinuxSymlink]]("linux-package-symlinks", "Symlinks we should produce in the underlying package.")
25
25
valgenerateManPages=TaskKey[Unit]("generate-man-pages", "Shows all the man files in the current project")
0 commit comments