mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-05 09:17:44 +03:00
parent
a52765a550
commit
a0f0cf0a6b
@ -1562,10 +1562,10 @@ int portable_detach(
|
|||||||
_cleanup_free_ char *marker = NULL, *unit_name = NULL;
|
_cleanup_free_ char *marker = NULL, *unit_name = NULL;
|
||||||
const char *dot;
|
const char *dot;
|
||||||
|
|
||||||
/* When a portable service is enabled with "portablectl --runtime attach", and is disabled
|
/* When a portable service is enabled with "portablectl --copy=symlink --enable --now attach",
|
||||||
* with "portablectl --enable detach", which calls DisableUnitFilesWithFlags DBus method,
|
* and is disabled with "portablectl --enable --now detach", which calls DisableUnitFilesWithFlags
|
||||||
* the main unit file is removed, but its drop-ins are not. Hence, here we need to list both
|
* DBus method, the main unit file is removed, but its drop-ins are not. Hence, here we need
|
||||||
* main unit files and drop-in directories (without the main unit files). */
|
* to list both main unit files and drop-in directories (without the main unit files). */
|
||||||
|
|
||||||
dot = endswith(de->d_name, ".d");
|
dot = endswith(de->d_name, ".d");
|
||||||
if (dot)
|
if (dot)
|
||||||
|
Loading…
Reference in New Issue
Block a user