• sbbs still keeps log file open after logrotate

    From Fernando Toledo@1:103/705 to GitLab issue in main/sbbs on Thursday, December 14, 2023 04:20:53
    open https://gitlab.synchro.net/main/sbbs/-/issues/682

    I have sbbs running with systemd on debian
    use rsyslog with the following config (according to rsyslog.d/sbbslog.conf) to generate /var/log/sbbs.log

    ```
    local3.* /var/log/sbbs.log
    ```

    I also have a setup the rotate:

    ```
    /var/log/sbbs.log {
    weekly
    maxsize 1G
    missingok
    rotate 10
    notifempty
    create 640 root adm
    maxage 90
    }
    ```

    The rotation works ok, but sbbs keeps writing the previous file

    ![imagen](https://gitlab.synchro.net/main/sbbs/uploads/417648d4f7864a9f0f27afe9391e2bb8/imagen.png)

    What is the best way to add a postrotate to tell the sbbs process to reopen the log files via systemd reload / kill etc ?


    ```
    ...
    sharedscripts
    postrotate
    systemctl restart sbbs > /dev/null
    endscript
    ....
    ```
    Is it possible for this to happen without restarting the bbs?
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 to GitLab note in main/sbbs on Thursday, December 14, 2023 16:48:53
    https://gitlab.synchro.net/main/sbbs/-/issues/682#note_4550

    This sounds like a n rsyslog configuration problem, not an sbbs problem: https://github.com/rsyslog/rsyslog/issues/3952

    That said, I would like to know the solution and update or wiki examples, instructions, and maybe the install/rsyslog.d/sbbslog.conf file.

    So let me know what you discover.
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Fernando Toledo@1:103/705 to GitLab note in main/sbbs on Friday, December 15, 2023 15:50:32
    https://gitlab.synchro.net/main/sbbs/-/issues/682#note_4558

    Oh! how interesting, I usually haven't had problems with rsyslog. I'm in debian11, I'm going to check it out and if I find something I'm going to share it of course.
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)