| 352 | return out.strip() == "enabled" |
| 353 | |
| 354 | def status(self) -> dict: |
| 355 | return { |
| 356 | "status": os.path.exists(self.path) and os.path.exists(os.path.join(self.path, "bin/daemon.sh")), |
| 357 | "jdk_path": self.jdk_path, |
| 358 | "path": self.path, |
| 359 | "running": self.running(), |
| 360 | "port": self.port(), |
| 361 | "auto_restart": self.get_auto_restart(), |
| 362 | "stype": "built" if os.path.exists(os.path.join(self.path, "conf/server.xml")) else "uninstall" |
| 363 | } |
| 364 | |
| 365 | def save_config_xml(self) -> bool: |
| 366 | if self.config_xml is None: |