From: ajacoutot Date: Mon, 29 Aug 2022 19:37:32 +0000 (+0000) Subject: When using logger(1), also log the message to standard error so we don't X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=36a94833e592cf814357a417bb05682830936b9f;p=openbsd When using logger(1), also log the message to standard error so we don't have to check syslog when running in debug mode (`-d'). --- diff --git a/etc/rc.d/rc.subr b/etc/rc.d/rc.subr index c1e5a1728de..542670c2c38 100644 --- a/etc/rc.d/rc.subr +++ b/etc/rc.d/rc.subr @@ -1,4 +1,4 @@ -# $OpenBSD: rc.subr,v 1.155 2022/08/29 19:14:02 ajacoutot Exp $ +# $OpenBSD: rc.subr,v 1.156 2022/08/29 19:37:32 ajacoutot Exp $ # # Copyright (c) 2010, 2011, 2014-2022 Antoine Jacoutot # Copyright (c) 2010, 2011 Ingo Schwarze @@ -175,7 +175,7 @@ rc_exec() { ${daemon_execdir:+cd ${daemon_execdir} && } \ $@ \ ${daemon_logger:+ 2>&1 | - logger -ip ${daemon_logger} -t ${_name}}" + logger -isp ${daemon_logger} -t ${_name}}" } rc_start() {