Date: Sun, 06 Feb 2022 15:21:05 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: =?UTF-8?B?W0J1ZyAyNjE3NDddIHd3dy91d3NnaTogZXRjL3JjLmQvdXdzZ2kg?= =?UTF-8?B?b25seSBiZSB2ZXJib3NlIHdoZW4gaXQgaXMgYSB0ZXJtaW5hbCB0byBwcmV2?= =?UTF-8?B?ZW50IHB1cHBldDfigJlzIHJjdmFyIHRlc3QgY2hva2luZyBvbiBpdA==?= Message-ID: <bug-261747-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D261747 Bug ID: 261747 Summary: www/uwsgi: etc/rc.d/uwsgi only be verbose when it is a terminal to prevent puppet7=E2=80=99s rcvar test chokin= g on it Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: ports-bugs@FreeBSD.org Reporter: ruben@verweg.com CC: eugene@zhegan.in Flags: maintainer-feedback?(eugene@zhegan.in) CC: eugene@zhegan.in Created attachment 231578 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D231578&action= =3Dedit [PATCH] Only output when it is a terminal. This prevents puppet7's rcvar t= est choking on it Puppet7 uses service $svcname rcvar to check whether it is enabled. The unpatched uwsgi rc.d script adds some verbose information that confuses this check $ service uwsgi rcvar Processing uwsgi profile: puppetboard # uwsgi # uwsgi_enable=3D"YES" # (default: "") The patch attached prevents verbose echo=E2=80=99ing if there is no terminal $ service uwsgi rcvar < /dev/null | cat # uwsgi # uwsgi_enable=3D"YES" # (default: "") With a terminal, old behaviour $ service uwsgi rcvar=20 Processing uwsgi profile: puppetboard # uwsgi # uwsgi_enable=3D"YES" # (default: "") --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-261747-7788>