modules-load: add task name config
#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++;
