Skip to content

Commit 9ee5b2f

Browse files
committed
vlogger: default to daemon.notice if linked as runit log service
1 parent ceb8dd4 commit 9ee5b2f

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

vlogger.8

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,11 @@ is linked to
5656
it uses
5757
.Dq foo
5858
as
59-
.Ar tag .
59+
.Ar tag
60+
and
61+
.Dq daemon.notice
62+
as
63+
.Ar pri .
6064
.Pp
6165
The options are as follows:
6266
.Bl -tag -width "-f file"

vlogger.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ main(int argc, char *argv[])
9595
if ((p = strrchr(pwd, '/')) && strncmp(p+1, "log", 3) == 0 &&
9696
(*p = '\0', (p = strrchr(pwd, '/'))) && (*(p+1) != '\0')) {
9797
tag = p+1;
98+
facility = LOG_DAEMON;
99+
level = LOG_NOTICE;
98100
}
99101
}
100102
}

0 commit comments

Comments
 (0)