[systemd-devel] On every 'sysctl enable/disable' Systemd Reload is happening

Lennart Poettering lennart at poettering.net
Tue Feb 26 10:25:24 UTC 2019


On Mo, 25.02.19 11:05, Mahesh Mylarappa (maheshmylar at gmail.com) 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


More information about the systemd-devel mailing list