2 This file is part of GNUnet
3 (C) 2008--2013 Christian Grothoff (and other contributing authors)
5 GNUnet is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published
7 by the Free Software Foundation; either version 3, or (at your
8 option) any later version.
10 GNUnet is distributed in the hope that it will be useful, but
11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with GNUnet; see the file COPYING. If not, write to the
17 Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 Boston, MA 02111-1307, USA.
22 * @file testbed/gnunet_testbed_ll_master.c
23 * @brief The load level master. Creates child processes through LoadLeveler
24 * @author Sree Harsha Totakura <sreeharsha@totakura.in>
28 #include "gnunet_util_lib.h"
34 static struct LL_job job_info;
42 * Main function that will be run.
45 * @param args remaining command-line arguments
46 * @param cfgfile name of the configuration file used (for saving, can be NULL!)
47 * @param cfg configuration
50 run (void *cls, char *const *args, const char *cfgfile,
51 const struct GNUNET_CONFIGURATION_Handle *cfg)
57 fprintf (stderr, _("Job command file not given. Exiting\n"));
60 ret = llsubmit (args[0], NULL, //char *monitor_program,
61 NULL, //char *monitor_arg,
62 &job_info, LL_JOB_VERSION);
66 printf ("Job name: %s\n Submitted to host: %s\n", job_info.job_name,
67 job_info.submit_host);
74 * @param argc the number of command line arguments
75 * @param argv command line arg array
79 main (int argc, char **argv)
81 struct GNUNET_GETOPT_CommandLineOption options[] = {
82 GNUNET_GETOPT_OPTION_END
86 status = GNUNET_SYSERR;
88 GNUNET_PROGRAM_run (argc, argv, "ll-master",
89 "LoadLeveler master process for starting child processes",
93 return (GNUNET_OK == status) ? 0 : 1;