We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7166755 commit e5a2b34Copy full SHA for e5a2b34
oasis_control/config/systemd/autoupdate.service
@@ -4,7 +4,15 @@ After=network-online.target packagekit.service
4
5
[Service]
6
Type=oneshot
7
+
8
+# If PackageKit is wedged, this clears it before we try updating.
9
+ExecStartPre=/usr/bin/systemctl restart packagekit.service
10
+ExecStartPre=/usr/bin/pkcon refresh force
11
12
ExecStart=/usr/bin/pkcon update -y
13
14
# PackageKit and pkcon treat "no updates" as a "special exit code" (5)
15
SuccessExitStatus=5
16
17
+# Don't hang forever
18
+TimeoutStartSec=30min
0 commit comments