![JAR search and dependency download from the Maven repository](/logo.png)
com.netflix.gradle.plugins.daemon.LegacyInstallCmd.groovy Maven / Gradle / Ivy
package com.netflix.gradle.plugins.daemon
class LegacyInstallCmd {
static String create(Map ctx) {
if (ctx.isRedHat) {
"/sbin/chkconfig ${ctx.daemonName} on"
} else {
List runLevels = ctx.runLevels as List
String startRunLevels = runLevels.join(' ')
String stopRunLevels = ([0, 1, 2, 3, 4, 5, 6] - runLevels).join(' ')
"/usr/sbin/update-rc.d ${ctx.daemonName} start ${ctx.startSequence} ${startRunLevels} . stop ${ctx.stopSequence} ${stopRunLevels} ."
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy