private void statusCommand() throws IOException, InterruptedException {
		discoverPostgresInstall();
		List<String> command = new ArrayList<String>();
		command.add(postgresControl.getAbsolutePath());
		command.add("status");
		command.add("-D");
		command.add(dataDirectory.getAbsolutePath());
		int res = runCommand(null, command, loadLibraryVar, loadLibraryValue);
		if (res == 0) {
			System.out.println("Server running");
		}
		else if (res == 3) {
			System.out.println("Server down");
		}
		else {
			throw new IOException("Error getting postgres server status");
		}
	}
Retrieve the status of a PostgreSQL server.
@throws IOException if server status can not be retrieved
@throws InterruptedException if the status command is interrupted
Ghidra/Features/BSim/src/main/java/ghidra/features/bsim/query/BSimControlLaunchable.java