Skip to content

Commit

Permalink
Merge pull request #2957 from craigcomstock/CFE-4445/3.24
Browse files Browse the repository at this point in the history
Fixed failed to open /dev/tty errors when using systemd unit management (3.24)
  • Loading branch information
craigcomstock authored Oct 16, 2024
2 parents d535176 + 7ec0bad commit d6c02f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cfe_internal/update/systemd_units.cf
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@ bundle agent cfe_internal_systemd_unit_files
systemd::

"$(systemctl)"
args => "daemon-reload",
args => "daemon-reload --no-ask-password",
handle => "cfe_internal_systemd_unit_files_reload_when_changed",
if => classmatch("cfe_systemd_service_unit_.*_repaired"),
comment => "We need to reload the systemd configuration after any unit
is changed in order for systemd to recognize the change.";

"$(systemctl)"
args => "restart $(service_units).service",
args => "restart $(service_units).service --no-ask-password",
handle => "cfe_internal_systemd_unit_restart_when_changed",
if => and(classify("cfe_systemd_service_unit_$(service_units)_repaired"),
returnszero("$(systemctl) --quiet is-active $(service_units)", noshell)),
Expand Down

0 comments on commit d6c02f0

Please sign in to comment.