diff options
author | John Levon <john.levon@joyent.com> | 2019-10-15 09:03:12 -0700 |
---|---|---|
committer | John Levon <john.levon@joyent.com> | 2019-10-16 07:04:56 -0700 |
commit | bc76be35ed72509d0c7f9ef22f0b4c57ea665703 (patch) | |
tree | f7510ee7db49743d2125c6073cd25c71adf35306 | |
parent | 6b2ab9052ed5e9a3abc8e1ca87a3b963638a3c02 (diff) | |
download | illumos-joyent-bc76be35ed72509d0c7f9ef22f0b4c57ea665703.tar.gz |
11819 svcs -L should check for alt_logfile
Reviewed by: Jason King <jason.brian.king@gmail.com>
Reviewed by: Andy Fiddaman <omnios@citrus-it.net>
Approved by: Dan McDonald <danmcd@joyent.com>
-rw-r--r-- | usr/src/cmd/svc/svcs/svcs.c | 6 |
1 files changed, 4 insertions, 2 deletions
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: |