Fix beacon server start up on Linux again

This commit is contained in:
Christopher Schnick
2022-12-16 16:45:39 +01:00
parent afd5dd4553
commit a2cdcb149a
2 changed files with 25 additions and 11 deletions
@@ -11,6 +11,20 @@ import java.util.List;
public class XPipeInstallation {
public static String createExternalAsyncLaunchCommand(String installationBase, String arguments) {
var suffix = (arguments != null ? arguments : "");
if (OsType.getLocal().equals(OsType.LINUX)) {
return "nohup \"" + installationBase + "/app/bin/xpiped\" --external & disown" + suffix;
}
return FileNames.join(installationBase, XPipeInstallation.getDaemonExecutablePath(OsType.getLocal())) + suffix;
}
public static String createExternalLaunchCommand(String command, String arguments) {
var suffix = (arguments != null ? arguments : "");
return "\"" + command + "\" --external" + suffix;
}
public static String getInstallationBasePathForCLI(ShellProcessControl p, String cliExecutable) throws Exception {
var defaultInstallation = getDefaultInstallationBasePath(p, true);
if (cliExecutable == null) {