mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-22 17:35:59 +03:00
Fix check for passed in path for dmeventd startup
Check passed in executable path for dmeventd instead of predefined compiled in path which is not the thing to be executed.
This commit is contained in:
parent
adbf9a803a
commit
6e7d2724ba
@ -1,5 +1,6 @@
|
||||
Version 1.02.75 -
|
||||
================================
|
||||
Properly support passed in dmevent path in dm_event_register_handler().
|
||||
Remove dmeventd fifos on exit if they are not managed by systemd.
|
||||
Use SD_ACTIVATION env. var. in systemd units to better detect systemd in use.
|
||||
Do not run a new dmeventd instance on restart if there's no existing one.
|
||||
|
@ -440,8 +440,8 @@ static int _start_daemon(char *dmeventd_path, struct dm_event_fifos *fifos)
|
||||
start_server:
|
||||
/* server is not running */
|
||||
|
||||
if (!strncmp(DMEVENTD_PATH, "/", 1) && stat(DMEVENTD_PATH, &statbuf)) {
|
||||
log_sys_error("stat", DMEVENTD_PATH);
|
||||
if ((args[0][0] == '/') && stat(args[0], &statbuf)) {
|
||||
log_sys_error("stat", args[0]);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user