• no daemon and syslog

    From Ragnarok@VERT/DOCKSUD to DOVE-Net.Synchronet_Programming_C+ on Saturday, February 06, 2106 22:28:15
    Hi all!

    i'm running sbbs service on systemd at tty11 on debian jessie:

    root@scarlet:~# cat /etc/systemd/system/sbbs.service
    [Unit]
    Description=Synchronet BBS
    Documentation=man:sbbs
    After=network.target

    [Service]
    Restart=on-failure
    EnvironmentFile=-/etc/default/sbbs
    ExecStart=/sbbs/exec/sbbs nd
    ExecReload=/bin/kill -HUP $MAINPID
    User=root
    Group=root
    StandardInput=tty
    StandardOutput=tty
    TTYPath=/dev/tty11

    [Install]
    WantedBy=multi-user.target

    i use "sbbs nd" to start the process (no daemon) and send it to tty.
    i search if possible to also send the output to syslog as when not use
    the "nd" switch.

    ---
    þ Synchronet þ Dock Sud BBS TLD 24 HS - http://www.docksud.com.ar - telnet://bbs.docksud.com.ar
  • From Digital Man@VERT to Ragnarok on Sunday, August 30, 2015 20:05:06
    Re: no daemon and syslog
    By: Ragnarok to DOVE-Net.Synchronet_Programming_C+ on Invalid Time

    Hi all!

    i'm running sbbs service on systemd at tty11 on debian jessie:

    root@scarlet:~# cat /etc/systemd/system/sbbs.service
    [Unit]
    Description=Synchronet BBS
    Documentation=man:sbbs
    After=network.target

    [Service]
    Restart=on-failure
    EnvironmentFile=-/etc/default/sbbs
    ExecStart=/sbbs/exec/sbbs nd
    ExecReload=/bin/kill -HUP $MAINPID
    User=root
    Group=root
    StandardInput=tty
    StandardOutput=tty
    TTYPath=/dev/tty11

    [Install]
    WantedBy=multi-user.target

    i use "sbbs nd" to start the process (no daemon) and send it to tty.
    i search if possible to also send the output to syslog as when not use
    the "nd" switch.

    I just commited a change to sbbscon.c to allow you to do this. Just add "syslog" to your sbbs command-line (e.g. "sbbs nd syslog"). Let me know how that works for ya. We could add an option to the [Unix] section of the sbbs.ini file too if you prefer.

    digital man

    Synchronet "Real Fact" #53:
    The Synchronet source code consists of over 500,000 lines of C and C++.
    Norco, CA WX: 76.9øF, 61.0% humidity, 5 mph SE wind, 0.00 inches rain/24hrs

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From Ragnarok@VERT/DOCKSUD to Digital Man on Wednesday, September 02, 2015 17:51:48
    El 31/08/15 a las 00:05, Digital Man escribió:
    Re: no daemon and syslog
    By: Ragnarok to DOVE-Net.Synchronet_Programming_C+ on Invalid Time

    Hi all!

    i'm running sbbs service on systemd at tty11 on debian jessie:

    root@scarlet:~# cat /etc/systemd/system/sbbs.service
    [Unit]
    Description=Synchronet BBS
    Documentation=man:sbbs
    After=network.target

    [Service]
    Restart=on-failure
    EnvironmentFile=-/etc/default/sbbs
    ExecStart=/sbbs/exec/sbbs nd
    ExecReload=/bin/kill -HUP $MAINPID
    User=root
    Group=root
    StandardInput=tty
    StandardOutput=tty
    TTYPath=/dev/tty11

    [Install]
    WantedBy=multi-user.target

    i use "sbbs nd" to start the process (no daemon) and send it to tty.
    i search if possible to also send the output to syslog as when not use
    the "nd" switch.

    I just commited a change to sbbscon.c to allow you to do this. Just add "syslog" to your sbbs command-line (e.g. "sbbs nd syslog"). Let me know how that works for ya. We could add an option to the [Unix] section of the sbbs.ini
    file too if you prefer.

    digital man

    thanks! i will recompile sbbs next weekend and test it!

    Saludos!

    ---
    þ Synchronet þ Dock Sud BBS TLD 24 HS - http://www.docksud.com.ar - telnet://bbs.docksud.com.ar
  • From Clifra Jones@VERT/DOOBBS to Ragnarok on Wednesday, August 29, 2018 10:06:24
    Hi all!

    i'm running sbbs service on systemd at tty11 on debian jessie:

    root@scarlet:~# cat /etc/systemd/system/sbbs.service
    [Unit]
    Description=Synchronet BBS
    Documentation=man:sbbs
    After=network.target

    [Service]
    Restart=on-failure
    EnvironmentFile=-/etc/default/sbbs
    ExecStart=/sbbs/exec/sbbs nd
    ExecReload=/bin/kill -HUP $MAINPID
    User=root
    Group=root
    StandardInput=tty
    StandardOutput=tty
    TTYPath=/dev/tty11

    [Install]
    WantedBy=multi-user.target

    i use "sbbs nd" to start the process (no daemon) and send it to tty.
    i search if possible to also send the output to syslog as when not use
    the "nd" switch.

    ---
    � Synchronet � Dock Sud BBS TLD 24 HS - http://www.docksud.com.ar - telnet://bbs.docksud.com.ar



    Most of what your going to want to see is in the systemd journal. To view the journal:
    sudo journactl -u sbbs

    To wrap the lines on your terminal
    sudo journalctl -u sbbs | less

    To see all journal entries for today (24 hours actually)
    sudo journalctl -u sbbs --since "1 day ago" | less

    To actively monitor the BBS
    sudo journalctl -u sbbs -f
    (ctrl-c to exit)

    Clifra Jones
    Sysop, Days of Old BBS
    Hostname: daysofoldbbs.wilhartsolutions.com
    Protocols: Telnet, SSH (2222), HTTP

    ---
    þ Synchronet þ Days of Old BBS Telnet/SSH(2222)/Web daysofoldbbs.wilhartsolutions.com
  • From Ragnarok@VERT/DOCKSUD to Clifra Jones on Wednesday, August 29, 2018 15:38:16
    El 29/08/18 a las 11:06, Clifra Jones escribió:
    Hi all!

    i'm running sbbs service on systemd at tty11 on debian jessie:

    root@scarlet:~# cat /etc/systemd/system/sbbs.service
    [Unit]
    Description=Synchronet BBS
    Documentation=man:sbbs
    After=network.target

    [Service]
    Restart=on-failure
    EnvironmentFile=-/etc/default/sbbs
    ExecStart=/sbbs/exec/sbbs nd
    ExecReload=/bin/kill -HUP $MAINPID
    User=root
    Group=root
    StandardInput=tty
    StandardOutput=tty
    TTYPath=/dev/tty11

    [Install]
    WantedBy=multi-user.target

    i use "sbbs nd" to start the process (no daemon) and send it to tty.
    i search if possible to also send the output to syslog as when not use
    the "nd" switch.

    ---
    � Synchronet � Dock Sud BBS TLD 24 HS - http://www.docksud.com.ar -
    telnet://bbs.docksud.com.ar



    Most of what your going to want to see is in the systemd journal. To view the journal:
    sudo journactl -u sbbs

    To wrap the lines on your terminal
    sudo journalctl -u sbbs | less

    To see all journal entries for today (24 hours actually)
    sudo journalctl -u sbbs --since "1 day ago" | less

    To actively monitor the BBS
    sudo journalctl -u sbbs -f
    (ctrl-c to exit)

    Clifra Jones
    Sysop, Days of Old BBS
    Hostname: daysofoldbbs.wilhartsolutions.com
    Protocols: Telnet, SSH (2222), HTTP

    ---
    þ Synchronet þ Days of Old BBS Telnet/SSH(2222)/Web daysofoldbbs.wilhartsolutions.com

    good tips! thanks!

    ---
    þ Synchronet þ Dock Sud BBS TLD 24 HS - http://bbs.docksud.com.ar - telnet://bbs.docksud.com.ar