Fix custom daemon start up

This commit is contained in:
Christopher Schnick 2022-12-16 13:09:07 +01:00
parent 22619224c5
commit 0798c53762

View file

@ -31,7 +31,8 @@ public class BeaconServer {
var custom = BeaconConfig.getCustomDaemonCommand();
if (custom != null) {
var command =
custom + " " + (BeaconConfig.getDaemonArguments() != null ? BeaconConfig.getDaemonArguments() : "");
ShellTypes.getPlatformDefault().executeCommandWithShell(
custom + (BeaconConfig.getDaemonArguments() != null ? " " + BeaconConfig.getDaemonArguments() : ""));
Process process = Runtime.getRuntime().exec(command);
printDaemonOutput(process, command);
return process;