From 423c8d41a783884d10ec886d3fa2aa00dfac75a0 Mon Sep 17 00:00:00 2001 From: Robert Andersson Date: Wed, 12 Sep 2018 13:54:02 +0200 Subject: [PATCH] modules-load: add task name config Signed-off-by: Robert Andersson --- plugins/modules-load.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plugins/modules-load.c b/plugins/modules-load.c index 9e03201d..1fcf5e65 100644 --- a/plugins/modules-load.c +++ b/plugins/modules-load.c @@ -33,7 +33,8 @@ #include "conf.h" #define MODULES_LOAD_PATH "/etc/modules-load.d" -#define SERVICE_LINE ":%d [2345] /sbin/modprobe %s %s -- Kernel module: %s" +#define SERVICE_LINE \ + ":%d name:modprobe.%s [2345] /sbin/modprobe %s %s -- Kernel module: %s" static void load(void *arg) { @@ -68,7 +69,8 @@ static void load(void *arg) mod = strtok_r(mod, " ", &args); - snprintf(cmd, sizeof(cmd), SERVICE_LINE, index, mod, args, mod); + snprintf(cmd, sizeof(cmd), SERVICE_LINE, + index, mod, mod, args, mod); service_register(SVC_TYPE_TASK, cmd, global_rlimit, NULL); index++;