Skip to content

Commit f8c857b

Browse files
Merge pull request #2958 from craigcomstock/CFE-4445/3.21
Fixed failed to open /dev/tty errors when using systemd unit management (3.21)
2 parents ab0b72c + ab169e3 commit f8c857b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cfe_internal/update/systemd_units.cf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,14 @@ bundle agent cfe_internal_systemd_unit_files
4444
systemd::
4545

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

5353
"$(systemctl)"
54-
args => "restart $(service_units).service",
54+
args => "restart $(service_units).service --no-ask-password",
5555
handle => "cfe_internal_systemd_unit_restart_when_changed",
5656
if => and(classify("cfe_systemd_service_unit_$(service_units)_repaired"),
5757
returnszero("$(systemctl) --quiet is-active $(service_units)", noshell)),

0 commit comments

Comments
 (0)