blob: 037295cd29f3a912f433e07fc0bbd8bc56c6abbd [file] [log] [blame]
Jan Kundrát6da34612017-10-11 12:28:53 +02001[Unit]
2Description=RAUC Good-marking Service
3ConditionKernelCommandLine=|rauc.slot
Jan Kundrát7ac11342018-06-14 18:56:05 +02004Requires=multi-user.target
5After=multi-user.target
Jan Kundrát6da34612017-10-11 12:28:53 +02006
7[Service]
Jan Kundrát7ac11342018-06-14 18:56:05 +02008Type=oneshot
Jan Kundrát89297822021-01-19 21:48:52 +01009RemainAfterExit=yes
Jan Kundrát7ac11342018-06-14 18:56:05 +020010ExecStartPre=/bin/sh -c '[ "$(/bin/systemctl list-units --failed --all --no-legend --no-pager)" == "" ]'
Jan Kundrát6da34612017-10-11 12:28:53 +020011ExecStart=/usr/bin/rauc status mark-good