Skip to content

Commit eab3e4f

Browse files
jcpunkFrostyX
authored andcommitted
Add list of applications triggering reboot-required
Signed-off-by: Pat Riehecky <riehecky@fnal.gov>
1 parent edd3142 commit eab3e4f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tracer/controllers/default.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,9 @@ def create_reboot_required_file(self):
144144
"""
145145
if self.applications.count_type(Applications.TYPES["STATIC"]):
146146
with open("/run/reboot-required", "w") as fp:
147-
fp.write("Tracer says reboot is required\n")
147+
fp.write("Tracer says reboot is required for:\n")
148+
for app in self.applications.filter_types([Applications.TYPES["STATIC"]]).unique().sorted("name"):
149+
fp.write(f"- {app.name}\n")
148150

149151
def _restartable_applications(self, applications, args):
150152
return applications.exclude_types([

0 commit comments

Comments
 (0)