mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-09-27 02:23:42 +08:00
Refactor update process execution.
Changed update process execution from a Python to a native process. Updated signal-based process control to match new process configurations.
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
|
||||
|
||||
void SoftwarePanel::checkForUpdates() {
|
||||
std::system("pkill -SIGUSR1 -f system.updated.updated");
|
||||
std::system("pkill -SIGUSR1 -f updated");
|
||||
}
|
||||
|
||||
SoftwarePanel::SoftwarePanel(QWidget* parent) : ListWidget(parent) {
|
||||
@@ -45,7 +45,7 @@ SoftwarePanel::SoftwarePanel(QWidget* parent) : ListWidget(parent) {
|
||||
if (downloadBtn->text() == tr("CHECK")) {
|
||||
checkForUpdates();
|
||||
} else {
|
||||
std::system("pkill -SIGHUP -f system.updated.updated");
|
||||
std::system("pkill -SIGHUP -f updated");
|
||||
}
|
||||
});
|
||||
addItem(downloadBtn);
|
||||
|
||||
@@ -102,7 +102,7 @@ procs = [
|
||||
PythonProcess("radard", "selfdrive.controls.radard", only_onroad),
|
||||
PythonProcess("hardwared", "system.hardware.hardwared", always_run),
|
||||
PythonProcess("tombstoned", "system.tombstoned", always_run, enabled=not PC),
|
||||
PythonProcess("updated", "system.updated.updated", only_offroad, enabled=not PC),
|
||||
NativeProcess("updated", "system/updated", ["./updated.py"], only_offroad, enabled=not PC),
|
||||
PythonProcess("uploader", "system.loggerd.uploader", always_run),
|
||||
PythonProcess("statsd", "system.statsd", always_run),
|
||||
|
||||
|
||||
Reference in New Issue
Block a user