Skip to content

Commit b7302b3

Browse files
committed
Use custom lock file to understand when an offline update needs to be finalized
1 parent 43438b7 commit b7302b3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

recipes-support/arduino-ootb/arduino-ootb/compose-apps-aklite-offline-run.service

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,14 @@ Wants=docker.service
44
After=docker.service
55
Before=lmp-device-auto-register.service
66
StartLimitBurst=2
7-
ConditionPathExists=/var/sota/sql.db
7+
ConditionPathExists=/var/sota/offline-update-pending
88
ConditionPathExists=!/var/sota/sota.toml
99

1010
[Service]
1111
Type=oneshot
1212
RemainAfterExit=true
1313
ExecStart=/usr/bin/aklite-offline run
14+
ExecStartPost=/bin/sh -c 'rm /var/sota/offline-update-pending'
1415
Restart=on-failure
1516

1617
[Install]

0 commit comments

Comments
 (0)