• Centos7 Synchronet logging Daemon Issues

    From Rmh@VERT/UNICYBER to All on Wednesday, May 02, 2018 19:28:28
    People,

    This in on centos7.
    I performed the configurations below as I wanted to use the [UNIX] block (below) from the sbbs.ini file.
    The issue I had issue the <nd> parameters for the sbbs binary is: all the logs went straight into /var/log/messages and it didn't matter what I did with
    rsyslog I couldn't push them into another file /var/log/sbbs.log

    So... if I was running as a daemon, the logs started feeding the /var/log/sbbs.log correctly. but something strange was happening as the process was just
    dying immediately.



    sbbs.service

    ====
    [Unit]
    Description=Synchronet BBS
    Documentation=man:sbbs
    After=network.target

    [Service]
    Environment=SBBSROOT=/sbbs SBBSCTRL=/sbbs/ctrl
    ExecStart=/sbbs/exec/sbbs d
    ExecReload=/bin/kill -HUP $MAINPID
    Restart=on-failure
    RestartSec=30
    User=bbs
    Group=bbs

    [Install]
    WantedBy=multi-user.target

    ====

    ctrl/sbbs.ini

    ====

    [UNIX]
    ; User/group name to run as
    ; User=admin
    ; Group=wheel
    User=bbs
    Group=bbs
    ; Run in background:
    Daemonize=False
    ; File to create/write-to with process identifier (when daemonized)
    PidFile=/var/run/sbbs/sbbs.pid
    ; System log (syslog) facility to use (when daemonized)
    ; 1 = LOCAL1
    ; 2 = LOCAL2
    ; .
    ; .
    ; .
    ; S = Use standard facilities - be sure you understand the
    ; consequences of enabling this!
    ; man syslog.conf(5) for more information.
    ; Defaults to using the USER facility.
    ; LogFacility=User
    LogFacility=1
    ; syslog identity to use (when daemonized)
    LogIdent=synchronet
    ; LogIdent=sbbs
    ; Default file creation mask:
    umask=077
    ===

    /etc/rsyslog.d/sbbslog.conf

    local1.* /var/log/sbbs.log

    =====

    /var/log/sbbs.log

    ====
    May 2 18:55:39 34819 synchronet: term Telnet Server listening on socket 185.5.52.214 port 2323
    May 2 18:55:39 34819 synchronet: term RLogin Server listening on socket 127.0.0.1 port 5130
    May 2 18:55:39 34819 synchronet: stat Loading configuration files from /sbbs/ctrl
    May 2 18:55:39 34819 synchronet: stat Listening on /sbbs/ctrl/status.sock
    May 2 18:55:39 34819 synchronet: Got signal (15)
    May 2 18:55:39 34819 synchronet: Got quit signal (15)
    May 2 18:55:39 34819 synchronet: term SSH Server listening on socket 185.5.52.214 port 2424
    May 2 18:55:39 34819 synchronet: evnt BBS Events thread started
    May 2 18:55:39 34819 synchronet: term Node 1 local spy using socket localspy1.sock
    May 2 18:55:39 34819 synchronet: term Node 2 local spy using socket localspy2.sock
    May 2 18:55:39 34819 synchronet: term Node 3 local spy using socket localspy3.sock
    May 2 18:55:39 34819 synchronet: term Node 4 local spy using socket localspy4.sock
    May 2 18:55:39 34819 synchronet: term Node 5 local spy using socket localspy5.sock
    May 2 18:55:39 34819 synchronet: term Node 6 local spy using socket localspy6.sock
    May 2 18:55:39 34819 synchronet: term Node 7 local spy using socket localspy7.sock
    May 2 18:55:39 34819 synchronet: term Node 8 local spy using socket localspy8.sock
    May 2 18:55:39 34819 synchronet: term Node 9 local spy using socket localspy9.sock
    ====

    And it dies after a few minutes..

    Suggestions?



    Thanks!
    RainManHood<---

    ---
    þ Synchronet þ UNICYBER BBS -- bbs.unicyber.co.uk:2323::ssh bbs.unicyber.co.uk 2424
  • From Digital Man@VERT to Rmh on Wednesday, May 02, 2018 19:26:10
    Re: Centos7 Synchronet logging Daemon Issues
    By: Rmh to All on Wed May 02 2018 07:28 pm

    This in on centos7.
    And it dies after a few minutes..

    Suggestions?

    Either find and paste the last log output before it "dies" or debug it using gdb:
    http://wiki.synchro.net/howto:gdb

    digital man

    Synchronet/BBS Terminology Definition #22:
    FOSSIL = Fido/Opus/SEAdog Standard Interface Layer
    Norco, CA WX: 56.1øF, 79.0% humidity, 5 mph NE wind, 0.02 inches rain/24hrs

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rmh@VERT/UNICYBER to Digital Man on Thursday, May 03, 2018 08:24:20
    Re: Centos7 Synchronet logging Daemon Issues
    By: Digital Man to Rmh on Wed May 02 2018 07:26 pm

    Re: Centos7 Synchronet logging Daemon Issues
    By: Rmh to All on Wed May 02 2018 07:28 pm

    This in on centos7.
    And it dies after a few minutes..

    Suggestions?

    Either find and paste the last log output before it "dies" or debug it using

    Yeah, that was the last log, which is not enough... I will keep an eye on it

    gdb:
    http://wiki.synchro.net/howto:gdb


    Will do.
    At the present I am just replacing the systemd by a regular /etc/init.d script , so let's see what it does and I can compare/feed back.

    Thanks Digital Man and apologies for silly questions..



    RainManHood<---

    ---
    þ Synchronet þ UNICYBER BBS -- bbs.unicyber.co.uk:2323::ssh bbs.unicyber.co.uk 2424