core/service: don't setup credentials for ExecCondition= and ExecReload=
authorMike Yuan <me@yhndnzj.com>
Sun, 4 Feb 2024 11:36:06 +0000 (19:36 +0800)
committerMike Yuan <me@yhndnzj.com>
Sun, 4 Feb 2024 16:52:46 +0000 (00:52 +0800)
commita145623bc403e410f41808a8e5cb31d29a52567c
treee44a3a525aa4b6fd310cf5d3ba058218be3e2b69
parentfe760177fe0c1d272f395c2fa144ec37194d80fa
core/service: don't setup credentials for ExecCondition= and ExecReload=

This seems to be a mistake in #27279. I believe credentials should
not be made available to condition or reload tasks. In most cases
they're irrelevant from the actual job of the service. Also, currently
the first ExecCondition= or ExecReload= cannot access creds anyway,
making the incompatibility introduced negligible.

If people actually come up with valid use cases, we can always
revisit this.
src/core/service.c