Print this page
11819 svcs -L should check for alt_logfile
*** 2627,2639 ****
scf_snapshot_destroy(snap);
return (0);
}
- /* ARGSUSED */
static int
! print_log(void *unused, scf_walkinfo_t *wip)
{
scf_propertygroup_t *rpg;
char buf[MAXPATHLEN];
if ((rpg = scf_pg_create(h)) == NULL)
--- 2627,2638 ----
scf_snapshot_destroy(snap);
return (0);
}
static int
! print_log(void *unused __unused, scf_walkinfo_t *wip)
{
scf_propertygroup_t *rpg;
char buf[MAXPATHLEN];
if ((rpg = scf_pg_create(h)) == NULL)
*** 2647,2656 ****
--- 2646,2658 ----
}
if (pg_get_single_val(rpg, SCF_PROPERTY_LOGFILE,
SCF_TYPE_ASTRING, buf, sizeof (buf), 0) == 0) {
(void) printf("%s\n", buf);
+ } else if (pg_get_single_val(rpg, SCF_PROPERTY_ALT_LOGFILE,
+ SCF_TYPE_ASTRING, buf, sizeof (buf), 0) == 0) {
+ (void) printf("%s\n", buf);
}
out:
scf_pg_destroy(rpg);