Skip to content

Commit

Permalink
update credentials when reloading a service
Browse files Browse the repository at this point in the history
Many long-running services will reload configuration and therefore
credentials on reload. Therefore its useful if a service reload will
also update credentials.

Tested in numtide/systemd-vaultd#12
  • Loading branch information
Mic92 authored and bluca committed Nov 1, 2022
1 parent 2f23762 commit 16a42b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/service.c
Original file line number Diff line number Diff line change
Expand Up @@ -2422,7 +2422,7 @@ static void service_enter_reload(Service *s) {
r = service_spawn(s,
s->control_command,
s->timeout_start_usec,
EXEC_APPLY_SANDBOXING|EXEC_APPLY_CHROOT|EXEC_IS_CONTROL|EXEC_CONTROL_CGROUP,
EXEC_APPLY_SANDBOXING|EXEC_APPLY_CHROOT|EXEC_IS_CONTROL|EXEC_CONTROL_CGROUP|EXEC_WRITE_CREDENTIALS,
&s->control_pid);
if (r < 0)
goto fail;
Expand Down

0 comments on commit 16a42b8

Please sign in to comment.