Skip to content

Commit 08f9ae4

Browse files
committed
fix: use reboot.target in bash scripts for consistency
Complete the migration from login1.Manager.Reboot to reboot.target by updating the bash scripts that were missed in #181. This ensures consistent reboot behavior across all code paths (Rust and bash) and proper systemd shutdown ordering. Signed-off-by: Jan Zachmann <50990105+JanZachmann@users.noreply.github.com>
1 parent 6b3a71d commit 08f9ae4

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ license = "MIT OR Apache-2.0"
88
name = "omnect-device-service"
99
readme = "README.md"
1010
repository = "https://github.com/omnect/omnect-device-service.git"
11-
version = "0.41.13"
11+
version = "0.41.14"
1212

1313
[dependencies]
1414
actix-server = { version = "2.6", default-features = false }

systemd/omnect-device-service.exec_stop_post.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ echo SERVICE_RESULT=${SERVICE_RESULT}, EXIT_CODE=${EXIT_CODE}, EXIT_STATUS=${EXI
1010
function reboot() {
1111
echo "reboot triggered by ${script}: ${1}"
1212
/usr/sbin/omnect_reboot_reason.sh log swupdate-validation-failed "${1}"
13-
dbus-send --system --print-reply --dest=org.freedesktop.login1 /org/freedesktop/login1 "org.freedesktop.login1.Manager.Reboot" boolean:true
13+
systemctl start reboot.target
1414
}
1515

1616
# for now we only check for ods failed (EXIT_STATUS not 0) and ignore SERVICE_RESULT

systemd/update-validation-observer.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ update_validation_file="/run/omnect-device-service/omnect_validate_update"
55
if [ -f ${update_validation_file} ]; then
66
echo "reboot triggered by ${script}"
77
/usr/sbin/omnect_reboot_reason.sh log swupdate-validation-failed "overall timeout"
8-
dbus-send --system --print-reply --dest=org.freedesktop.login1 /org/freedesktop/login1 "org.freedesktop.login1.Manager.Reboot" boolean:true
8+
systemctl start reboot.target
99
fi

0 commit comments

Comments
 (0)