Print this page
11819 svcs -L should check for alt_logfile

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/svc/svcs/svcs.c
          +++ new/usr/src/cmd/svc/svcs/svcs.c
↓ open down ↓ 2621 lines elided ↑ open up ↑
2622 2622  
2623 2623          /* "application" type property groups */
2624 2624          if (opt_verbose == 1)
2625 2625                  print_application_properties(wip, snap);
2626 2626  
2627 2627          scf_snapshot_destroy(snap);
2628 2628  
2629 2629          return (0);
2630 2630  }
2631 2631  
2632      -/* ARGSUSED */
2633 2632  static int
2634      -print_log(void *unused, scf_walkinfo_t *wip)
     2633 +print_log(void *unused __unused, scf_walkinfo_t *wip)
2635 2634  {
2636 2635          scf_propertygroup_t *rpg;
2637 2636          char buf[MAXPATHLEN];
2638 2637  
2639 2638          if ((rpg = scf_pg_create(h)) == NULL)
2640 2639                  scfdie();
2641 2640  
2642 2641          if (scf_instance_get_pg(wip->inst, SCF_PG_RESTARTER, rpg) != 0) {
2643 2642                  if (scf_error() != SCF_ERROR_NOT_FOUND)
2644 2643                          scfdie();
2645 2644  
2646 2645                  goto out;
2647 2646          }
2648 2647  
2649 2648          if (pg_get_single_val(rpg, SCF_PROPERTY_LOGFILE,
2650 2649              SCF_TYPE_ASTRING, buf, sizeof (buf), 0) == 0) {
2651 2650                  (void) printf("%s\n", buf);
     2651 +        } else if (pg_get_single_val(rpg, SCF_PROPERTY_ALT_LOGFILE,
     2652 +            SCF_TYPE_ASTRING, buf, sizeof (buf), 0) == 0) {
     2653 +                (void) printf("%s\n", buf);
2652 2654          }
2653 2655  
2654 2656  out:
2655 2657          scf_pg_destroy(rpg);
2656 2658  
2657 2659          return (0);
2658 2660  }
2659 2661  
2660 2662  int
2661 2663  qsort_str_compare(const void *p1, const void *p2)
↓ open down ↓ 1272 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX