From bc76be35ed72509d0c7f9ef22f0b4c57ea665703 Mon Sep 17 00:00:00 2001 From: John Levon Date: Tue, 15 Oct 2019 09:03:12 -0700 Subject: 11819 svcs -L should check for alt_logfile Reviewed by: Jason King Reviewed by: Andy Fiddaman Approved by: Dan McDonald --- usr/src/cmd/svc/svcs/svcs.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'usr/src/cmd/svc') diff --git a/usr/src/cmd/svc/svcs/svcs.c b/usr/src/cmd/svc/svcs/svcs.c index 6467ca9e52..ec3dba52d1 100644 --- a/usr/src/cmd/svc/svcs/svcs.c +++ b/usr/src/cmd/svc/svcs/svcs.c @@ -2629,9 +2629,8 @@ restarter_common: return (0); } -/* ARGSUSED */ static int -print_log(void *unused, scf_walkinfo_t *wip) +print_log(void *unused __unused, scf_walkinfo_t *wip) { scf_propertygroup_t *rpg; char buf[MAXPATHLEN]; @@ -2649,6 +2648,9 @@ print_log(void *unused, scf_walkinfo_t *wip) 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: -- cgit v1.2.3