pid1: touch the /run/systemd/show-status just once
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 29 Feb 2020 10:30:16 +0000 (11:30 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 1 Mar 2020 10:42:26 +0000 (11:42 +0100)
commitef15d3e1ab67549a65b41e853e4d3b3b08a350d9
tree951f8ce3e17bbfdd67307770ba8dc2054d680c9d
parent7365a296703154fb01a2a45e84bcde4825d47c9e
pid1: touch the /run/systemd/show-status just once

We know if we created the file before, no need to repeat the operation. The
state in /run should always match our internal state. Since we call
manager_set_show_status() quite often internally, this saves quite a few
pointless syscalls.
src/core/manager.c