- gw_log_level (GW_LOG_ALL);
- signal (SIGCHLD, catchchild);
+ while (++argno < argc)
+ {
+ if (argv[argno][0] == '-')
+ {
+ switch (argv[argno][1])
+ {
+ case 'H':
+ fprintf (stderr, "monitor [option..] [resource]\n");
+ fprintf (stderr, "If no resource file is given");
+ fprintf (stderr, " default.res is used\n");
+ fprintf (stderr, "Options are transferred to kernel\n");
+ exit (1);
+ case 'd':
+ gw_log_level (GW_LOG_ALL & ~RES_DEBUG);
+ break;
+ case 'D':
+ gw_log_level (GW_LOG_ALL);
+ break;
+ }
+ }
+ else
+ default_res = argv[argno];
+ }
+ reread_resources ();
+ signal (SIGCHLD, catch_child);
+ signal (SIGHUP, catch_hup);
+ signal (SIGTERM, catch_term);