From nobody Wed Dec 25 11:05:37 2024 X-Original-To: ports-bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4YJ87Q5LVbz5hwhW for ; Wed, 25 Dec 2024 11:05:38 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YJ87Q1TlWz4g83 for ; Wed, 25 Dec 2024 11:05:38 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1735124738; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=KaICX7lWhbu69ZS3hiUiguddw3NSaIwpfbXGitgMGZE=; b=RemP/ETm1HNa9BcLIj1w9g8XklVr892wD8kmzLtijWnJ/1lmYeCG/IQqKqz8g3rxn4+0+L Bd7NoSljTcFTUe+b7AFGDoQayroLQlv24DISIEGfHnQyxipt1TyIGjYilS8eJPcljVXYBv ia7FRVNONPfCnUjK5RnO4wxM5kf03Aepdm6AP6OandeQ7DjMscakxTxm5+eLXB37apwMSJ mtWP2swp+1F2wopS/EFUisQw1pJBr3TwOVp/Q9RvW4nohMHfqSVuTdc9gFn2WJM1du829D L4nMmZbH6zTcd+TEXoGzSiQL6C/++WSJ9+vh6F9X3YKE/3Hc1ozAVIAqK8cBQA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1735124738; a=rsa-sha256; cv=none; b=ycLkspa6VrqkYvIvrPzKWkvnfTP2kaajsRPl129Y52KEekj5+aUZS+MIDDUOsuVwUXoIGH fNzofABB9pCidWpDNh43fj4rTN0yjHpLWAXNvCjNAcj1CdT4mQiFCyV5e4uaD68Bk8r+tC igyX5VUHZYA1dIXCSjzVkJQ13DCzKqjGgDTp+rp5pIZaTORkWYSjKUc4xYLUTZMmQyaLEV t/ZpfRt1StNKSHP1Ls0k9msTOsxdx8msP3KzLlV/3PgNaWt9QT2p4uv3ygBxWJek7fDWfc PaUdesSZqPs+ZA9eHucG1/waoFXmxdRZ9iFmetVlTNRnzh2IMSnVQ8JyNT0WWg== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4YJ87P6WZWz1LRt for ; Wed, 25 Dec 2024 11:05:37 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 4BPB5bK2065191 for ; Wed, 25 Dec 2024 11:05:37 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 4BPB5bL5065190 for ports-bugs@FreeBSD.org; Wed, 25 Dec 2024 11:05:37 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 283590] sysutils/ttyd: rc.d stop command does not work + other issues Date: Wed, 25 Dec 2024 11:05:37 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: d8zNeCFG@aon.at X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: nc@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-ports-bugs@freebsd.org Sender: owner-freebsd-ports-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D283590 Bug ID: 283590 Summary: sysutils/ttyd: rc.d stop command does not work + other issues Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: nc@FreeBSD.org Reporter: d8zNeCFG@aon.at Flags: maintainer-feedback?(nc@FreeBSD.org) Assignee: nc@FreeBSD.org Scenario: - FreeBSD 14.2 - ports latest @ a554b7f5985f - Using portmaster to upgrade ports - shellinabox gets replaced by sysutils/ttyd - Configuring ttyd in apache as reverse proxy - Using the following in /etc/rc.conf: ttyd_enable=3D"NO" ttyd_exec=3D"/usr/bin/login" ttyd_args=3D"-i lo0 -p 7681 -W" - Starting ttyd using "service ttyd onestart" - Stopping ttyd using "service ttyd onestop" Result: - The ttyd program is terminated - The daemon progam which manages the ttyd program restarts ttyd after 15 seconds Expected result: - The ttyd program and its daemon controller should be terminated Additional notes: - The daemon command line uses "-r -R 15". The first "-r" seems to be superfluous, considering the daemon(8) man page. - ttyd by default is started without the "-W" flag, rendering the program q= uite useless. It would be nice to include a hint that "-W" should be added if interactive user input is to be supported. - ttyd by default is set to start /bin/sh. I think it would be better to st= art it with /usr/bin/login instead. - A hint for reverse proxying using apache-2.4 could be added. From 2.4.47, httpd supports websocket upgrades directly in the mod_proxy module (see https://httpd.apache.org/docs/2.4/mod/mod_proxy.html). A minimal config for apache looks like this: SSLRequireSSL ProxyPass http://127.0.0.1:7681 upgrade=3Dwebsocket ProxyPassReverse http://127.0.0.1:7681 -- Martin --=20 You are receiving this mail because: You are the assignee for the bug.=