Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 07 Jun 2024 20:20:59 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 279578] security/vaultwarden - newsyslog support
Message-ID:  <bug-279578-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
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.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-279578-7788>