On Mo, 25.02.19 11:05, Mahesh Mylarappa ([email protected]) wrote:

> Hi,
>
> I am working on Linux host which has old 219 systemd build. We are trying
> to create/enable/start  multiple service instances at same time. Basically
> we create 15 to 20 unit files in /etc/systemd/system directory and call
> 'systemctl enable' on each one of them. There is only 30 to 50ms gap
> between each enable commands and  i could see few of those taking 10s of
> seconds to complete. If i put log level to debug, i could see that every
> time a new 'sysctl enable' is fired for new service instance,  there is
> complete reload happening and queued jobs are cancelled and reissued.
>
> I understand build 219 is very old, but wanted to know if there was a
> similar issue which was fixed in later builds.

Use --no-reload for the enable operations you want to do, and then
finally issue "systemctl daemon-reload" once.

Lennart

--
Lennart Poettering, Red Hat
_______________________________________________
systemd-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to