diff options
author | lihaoxiang (F) <lihaoxiang9@huawei.com> | 2022-12-01 12:10:49 +0800 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2022-12-06 12:59:03 +0100 |
commit | d90b7d585067e87c56d8462b8e3e1c68996e2fc1 (patch) | |
tree | 1779ab16ac173d86d9f0d5ead274b9f9160fbab7 /quotasync.1 | |
parent | f7e24ee92d9bc16557132b33a34a6154aafd99d7 (diff) | |
download | linuxquota-master.tar.gz |
Running quota_nld by systemd might cause the problem that systemd
couldn't open the PID file generated by quota_nld. In fact, the PID
file hasn't existed yet because it originates from the child process
of quota_nld which is a daemon process. As the main process exit,
systemd try to access the PID file but the daemon hadn't create it
that time.
In this situation, we move the procedure of creating PID file into the
parent process to ensure the PID file must existed when quota_nld exit.
After that, the above problem would never occur again.
[JK: Fixed up SIGTERM handling and format strings]
Signed-off-by: lihaoxiang <lihaoxiang9@huawei.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'quotasync.1')
0 files changed, 0 insertions, 0 deletions