From nobody Fri Jun 7 20:20:59 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 4Vwsyz5LVJz5MCDK for ; Fri, 07 Jun 2024 20:20:59 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Vwsyz2qdSz45gQ for ; Fri, 7 Jun 2024 20:20:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1717791659; a=rsa-sha256; cv=none; b=Kbz7pUYLNxIzG7BEQO1VXc2wlX2hqhSOVs4BeYQ/9HCDr8Id+lq8faHR43Vv3Ok9TawNOb YOTkT6mMlRE5vBjxlywvh1Utyh38R+6W6MmlN+i0sJz8Q17rOqY00WSajjqQgSkDUQp0Hr bL2znYZLZj/NgfBDfkHJch0TIgtfCZHvzrQJWhjyitYR+IIRrEcJrT2IAjIGGUVYKQvGxn 4cA/ASH91a5EjKeCr5ZksTfqjEHG/D/j9/uXs2sz+UX8oaXpgiA/gjUi1KN3qchyir4Oz5 630BAooXazJo38b6i4+A+frtn120AkkOew9pbt91jUPWJEAEhaEyDcEhk7CcwA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1717791659; 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=9hgUhaFzATiOFUEOj8S88CCRFX+FIndjPIL8YhHjTvo=; b=UjMj1B9Ecjk91nie/c5lCsXWooTpYEq8VxBuweBbIcTzflhm9hhV7nx2bX41iYa6R9gp32 GIdV57X5pTNNbhkLkFrj8KgbQ8ZFmSjcSrMYVnLLKdDjrc3Ua2xLJqvaLk2iFo35jTMsYZ V3ehntqk5utOjXoo+BOBot+iteUWsBiRjkjgpZFko0+AfKTaM4bufMl59pyrrSIqMIZOGG ewoygFRs4d/eAZSzXz8Owemn1H+IuSPzF3p+wmbe7abXJG6poUBRaITYYxc2eVUFDbFqws k7Itb5DH+zjw5MWWII8Nu0aVuAhkS8ZoMskU9ynHN3K95BHnNX8jIkBihheFwQ== 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 4Vwsyz2S4fzSL5 for ; Fri, 7 Jun 2024 20:20:59 +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 457KKxps051899 for ; Fri, 7 Jun 2024 20:20:59 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 457KKxvv051894 for ports-bugs@FreeBSD.org; Fri, 7 Jun 2024 20:20:59 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 279578] security/vaultwarden - newsyslog support Date: Fri, 07 Jun 2024 20:20:59 +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: ohaucke@gadean.de X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: mr@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=3D279578 Bug ID: 279578 Summary: security/vaultwarden - newsyslog support Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: mr@FreeBSD.org Reporter: ohaucke@gadean.de Assignee: mr@FreeBSD.org Flags: maintainer-feedback?(mr@FreeBSD.org) Hey there,=20=20 with the current rc.d script, vaultwarden doesn't write to the log file, if= it gets rotated by [newsyslog.conf(5)](https://man.freebsd.org/cgi/man.cgi?query=3Dnewsyslog.c= onf). Example configuration: ``` # logfilename [owner:group] mode count size when=20= =20=20 flags [/pid_file] [sig_num] /var/log/vaultwarden.log www:wheel 640 5 10240 * = JC=20 /var/run/vaultwarden/vaultwarden.pid SIGUSR1 ``` After some digging, i've found out that [daemon(8)](https://man.freebsd.org/cgi/man.cgi?daemon(8)) is being used an= d it has one argument (`-r`) which restarts the child process, if it has been terminated. I've tested it with `-r` in the `command_args` and ran `newsyslog`:=20=20 The log file got rotated and the vaultwarden process wrote to the new log f= ile - as expected. Would it be possible to integrate that argument in the `command_args` of the rc.d script? There is one caveat that needs some consideration:=20=20 If the child process fails to start - due to what ever reason - it would continuously been started again? Regards, Oliver --=20 You are receiving this mail because: You are the assignee for the bug.=