Skip to content

Commit

Permalink
Merge pull request #2956 from craigcomstock/CFE-4445/master
Browse files Browse the repository at this point in the history
Fixed failed to open /dev/tty errors when using systemd unit management
  • Loading branch information
craigcomstock authored Oct 15, 2024
2 parents d94cee3 + 1763475 commit ba9359f
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 ba9359f

Please sign in to comment.