mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-09 01:18:39 +03:00
Do not unlink the socket on daemon shutdown if activation is done via systemd.
This commit is contained in:
parent
c2d7d97301
commit
6b85d4df44
@ -508,7 +508,8 @@ void daemon_start(daemon_state s)
|
||||
syslog(LOG_ERR, "Failed to handle a client connection.");
|
||||
}
|
||||
|
||||
if (s.socket_fd >= 0)
|
||||
/* If activated by systemd, do not unlink the socket - systemd takes care of that! */
|
||||
if (!_systemd_activation && s.socket_fd >= 0)
|
||||
if (unlink(s.socket_path))
|
||||
perror("unlink error");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user