From nobody Tue Dec 30 19:07:01 2025 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 4dgjJ53Cs0z6MMJn for ; Tue, 30 Dec 2025 19:07:01 +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 "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dgjJ51v5Tz3Qr6 for ; Tue, 30 Dec 2025 19:07:01 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767121621; 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=EO/TzMBDqe6Zy9IPuukKU6+7TfAFniO5iI1CQ0FAqtg=; b=bXf0/oZC/7bpcQVt2WwKaNJ/8OAKmLlJhP5VsacoU2dJ6X5a7u3s9MAB9bjoaqEfDT9xw7 jZJgB53u990y3JIu9O4p/FS6zd6Qa8M+wIhHRc3jBxpgoYAd4FnXQH+r2JAewbjI2ZWcCD fsgYZ5MiDlwjeO8aM6XCTAxMytIbhpVGFgPDKmbpgAVL7qwJ5Os+tffCeEqdLEO5AgJeSH hWMZsUaPPwxig8nXyu2qktAOH2r+HOZZKo146Qe3efJhjh2FoEWn/phQT1j7aXtRk/GeEX jG176IY8+clHIHKICQg+4u7ibLzH+w1RHta/WNN/cirvPUO8QKtYNMK2t8dxtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767121621; 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=EO/TzMBDqe6Zy9IPuukKU6+7TfAFniO5iI1CQ0FAqtg=; b=SLQLbs/tseElleyF23wT5KdgFL7V0Ls3SQeSGGuFMjcANSaiFsAGiq5gtnQO28k4DoTwQV J0/gvFqEneF/a8ykZpt0agAJ8Z6PmVbq7aUAZr0jKcdd3UdZU/qV/E7rh3K5TxytLuGv5u 7AK9xx/TSkfWfGosno1xO2dnLn74bXbSsTeeiKXL0e90HvYBKNYWtnfwdGnnec2YHgkUUN vtkHbXx6wDFpfezcVpFu4aQuWHQrDZQC3dYeHJ3l7gKS/2gh37A6Dlf0Zg+66uq4iE8ZMd 2pFAidm6RjF8hs4QRtcXMH9jbnL/O2gtNMRf1zvapyiYDMm7M2ExWj5/zkvkiw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767121621; a=rsa-sha256; cv=none; b=yNoTS4OODrLI7AeectbDqUW4tDu/ElVIE+mBumadXG0bh4cKDwetgssooXDB24yh4SYYRC U5FWPAjI1q3QJUXYUyKZQm7vj9FVYG7oEeOacMX3tBRoyzgHdrjZhUJAv27KztNVkHv5Jn Awp5cYEFSm5zwz/lQivWcv355jPrBCEu/XRWRZcWuEdLg9O6/+4VfioecfLH+OBCjQKd7K t52P2SUWUJK3loXHyld+IVWAGtHNkFgZqE8p2PE9TXEHEPd9hcnfMxokdeM1X9jnTWR6OF ZtTBp7BMi0epQ4YUL4fpiWLxfjjuWwlnLRfQklcUBe9yf7HA7ia85tiJtmmeIw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4dgjJ51PTsz1C06 for ; Tue, 30 Dec 2025 19:07:01 +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 5BUJ71dY050714 for ; Tue, 30 Dec 2025 19:07:01 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 5BUJ71ud050713 for ports-bugs@FreeBSD.org; Tue, 30 Dec 2025 19:07:01 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 292051] net/py-wsdd: 'service wsdd status' fails to report status correctly Date: Tue, 30 Dec 2025 19:07:01 +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: igor.arabesc.pavlov@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ports-bugs@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 cc flagtypes.name Message-ID: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" 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=3D292051 Bug ID: 292051 Summary: net/py-wsdd: 'service wsdd status' fails to report status correctly Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: ports-bugs@FreeBSD.org Reporter: igor.arabesc.pavlov@gmail.com CC: hiroo.ono+freebsd@gmail.com CC: hiroo.ono+freebsd@gmail.com Flags: maintainer-feedback?(hiroo.ono+freebsd@gmail.com) 'service wsdd status' command doesn't work for me. The service wsdd status command does not work as expected in my environment= . It fails to correctly identify whether the service is running. Even if the ser= vice is running, the command reports that it is not. I would like to suggest the following changes to the rc-script: --- --- --- #!/bin/sh # PROVIDE: wsdd # REQUIRE: DAEMON samba_server # BEFORE: LOGIN # KEYWORD: shutdown # Add the following line in /etc/rc.conf to enable wsdd: # # wsdd_enable=3D"YES" # wsdd_flags=3D"" # wsdd_domain=3D"" # wsdd_group=3D"" # # Do not specify -d DOMAIN or -w WORKGROUP in wsdd_flags. Instead, set # wsdd_domain=3D"DOMAIN" or wsdd_group=3D"WORKGROUP", otherwise it will be # overridden by automatically detected workgroup. # . /etc/rc.subr name=3D"wsdd" rcvar=3D"wsdd_enable" pidfile=3D"/var/run/${name}.pid" procname=3D"/usr/local/bin/wsdd" command_interpreter=3D"python3" load_rc_config ${name} : ${wsdd_enable:=3D"NO"} : ${wsdd_flags:=3D""} : ${wsdd_domain:=3D""} : ${wsdd_group:=3D""} : ${wsdd_smb_config_file:=3D"/usr/local/etc/smb4.conf"} if [ -z "${wsdd_group}" ]; then # automatic detection of workgroup wsdd_group=3D$(/usr/local/bin/testparm -s --parameter-name workgroup 2>/dev/null) # try to manually extract workgroup from samba configuration if testparm failed if [ -z "$wsdd_group" ] && [ -r $wsdd_smb_config_file ]; then wsdd_group=3D"$(grep -i '^[[:space:]]*workgroup[[:space:]]*=3D' $wsdd_smb_config_file | cut -f2 -d=3D | tr -d '[:blank:]')" fi fi wsdd_opts=3D"" if [ -n "${wsdd_flags}" ]; then wsdd_opts=3D"${wsdd_flags}" wsdd_flags=3D"" # The variable should be cleared because its content is implicitly inserted right after ${command}, which is unexpected for the dae= mon. fi if [ -n "$wsdd_domain" ]; then wsdd_opts=3D"${wsdd_opts} -d ${wsdd_domain}" elif [ -n "$wsdd_group" ]; then wsdd_opts=3D"${wsdd_opts} -w ${wsdd_group}" fi command=3D"/usr/sbin/daemon" command_args=3D"-u _wsdd -S -p ${pidfile} -- ${procname} ${wsdd_opts}" run_rc_command "$1" --- --- --- This version works correctly for me. --=20 You are receiving this mail because: You are the assignee for the bug.=