• SBBS Lgs

    From Mortifis@VERT/ALLEYCAT to Sneaky on Sunday, October 14, 2018 17:39:03
    Here is a little more insight about looking at sbbs logs. If you are running sbbs daemonized and have LogFacility=User then you could look at /var/log/user.log and/or user.log.1 there are many ways to look at logs. I will look into your other questions about gtkmonitor, one thing I am sure if interferring with some of it's features is that if you run the board as sudo sbbs and exported SBBSCTRL as your login user then the env is not set correctly, also if you run sudo gtkmonitor it will open in your desktop as root so the SBBSCTRL env will not be set correctly. When I get home from work I will look at an easy way around this.

    ---
    þ Synchronet þ Twisted Truckers BBS web asmf-etrucker.com:81 telnet asmf-etrucker.com
  • From Sneaky@VERT to Mortifis on Tuesday, October 16, 2018 07:56:00
    Hi Mortifis

    Here is a little more insight about looking at sbbs logs. If you are running sbbs daemonized

    In sbbs.ini I have daemonized as false

    and have LogFacility=User then you could look
    at /var/log/user.log and/or user.log.1 there are many ways to look at logs.

    thank you, and yes I found these logs and had a look in them.

    I will look into your other questions about gtkmonitor, one
    thing I am sure if interferring with some of it's features is that if
    you run the board as sudo sbbs and exported SBBSCTRL as your login user then the env is not set correctly,

    yes you are right I don't think the env are not set correctly,

    also if you run sudo gtkmonitor it
    will open in your desktop as root so the SBBSCTRL env will not be set correctly. When I get home from work I will look at an easy way around this.

    Thank you for looking into the env for me.

    Ian S 3rd choice Core Sbbs-rasbian nz
    === MultiMail/Win32 v0.49
    --- SBBSecho 3.05-Win32
    * Origin: 1st Choice Core (3:770/330)
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From mark lewis@VERT to Sneaky on Thursday, October 18, 2018 14:32:18
    On 2018 Oct 16 07:56:00, you wrote to Mortifis:

    Here is a little more insight about looking at sbbs logs. If you are
    running sbbs daemonized

    In sbbs.ini I have daemonized as false

    that's correct... the recommended method is to leave that as "false" and use the "-d" (IIRC) command line option to daemonize sbbs...

    and have LogFacility=User then you could look at /var/log/user.log
    and/or user.log.1 there are many ways to look at logs.

    thank you, and yes I found these logs and had a look in them.

    even with that setting, my ubuntu server doesn't have /var/log/user.log and similar... everything has to be dug out of the main syslog.log file(s)...

    )\/(ark

    Always Mount a Scratch Monkey
    Do you manage your own servers? If you are not running an IDS/IPS yer doin' it wrong...
    ... Arguing with a Moderator in public may be hazardous to your access.
    ---
    * Origin: (1:3634/12.73)
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Nelgin@VERT/EOTLBBS to mark lewis on Thursday, October 18, 2018 16:38:59
    mark wrote:
    On 2018 Oct 16 07:56:00, you wrote to Mortifis:

    Here is a little more insight about looking at sbbs logs. If you are
    running sbbs daemonized

    In sbbs.ini I have daemonized as false

    that's correct... the recommended method is to leave that as "false" and use
    the "-d" (IIRC) command line option to daemonize sbbs...

    and have LogFacility=User then you could look at /var/log/user.log
    and/or user.log.1 there are many ways to look at logs.

    thank you, and yes I found these logs and had a look in them.

    even with that setting, my ubuntu server doesn't have /var/log/user.log and similar... everything has to be dug out of the main syslog.log file(s)...

    )\/(ark

    Always Mount a Scratch Monkey
    Do you manage your own servers? If you are not running an IDS/IPS yer doin' it
    wrong...
    ... Arguing with a Moderator in public may be hazardous to your access.
    ---
    * Origin: (1:3634/12.73)
    â–  Synchronet â–  Vertrauen â–  Home of Synchronet â–  [vert/cvs/bbs].synchro.net

    I really have no idea what I'm doing with the new syslog stuff but this
    seems to work.

    In /etc/rsyslog.d create a new file

    bbs@bbs:/etc/rsyslog.d$ cat 60-sbbslog.conf
    if $programname == 'synchronet' then /var/log/sbbs/sbbs.log
    if $programname == 'synchronet' then ~



    Then in sbbs.service add the following
    SyslogIdentifier=synchronet

    Finally in ctrl/sbbs.ini

    Daemonize=False
    LogFacility=3
    LogIdent=synchronet

    Create an empty /var/log/sbbs/sbbs.log file and make sure the user you run
    sbbs under has permissions - if in doubt, chmod 777 it for now.

    After you HUP rsyslog to read in the new config and restart sbbs this will
    log all your sbbs stuff to /var/log/sbbs/sbbs.log

    At least it does here.

    ---
    þ Synchronet þ End Of The Line BBS - endofthelinebbs.com
  • From Sneaky@VERT/CHOICE to mark lewis on Friday, October 19, 2018 11:45:00
    Hi mark lewis


    Here is a little more insight about looking at sbbs logs. If you are
    running sbbs daemonized

    In sbbs.ini I have daemonized as false

    that's correct... the recommended method is to leave that as "false"
    and use the "-d" (IIRC) command line option to daemonize sbbs...

    Okay cool thank you, so how and were in sbbs.ini you do this or daemonize:-d



    and have LogFacility=User then you could look at /var/log/user.log
    and/or user.log.1 there are many ways to look at logs.

    thank you, and yes I found these logs and had a look in them.

    even with that setting, my ubuntu server doesn't have /var/log/user.log and similar... everything has to be dug out of the main syslog.log file(s)...

    Okay, thank you for this.

    Ian S 1st choice core sbbs nz

    --- MultiMail/Win32 v0.49
    þ Synchronet þ 1st Choice Core - 1stchoicecore.co.nz
  • From mark lewis@VERT to Sneaky on Friday, October 19, 2018 10:51:14
    On 2018 Oct 19 11:45:00, you wrote to me:

    Here is a little more insight about looking at sbbs logs. If you
    are running sbbs daemonized

    In sbbs.ini I have daemonized as false

    that's correct... the recommended method is to leave that as "false"
    and use the "-d" (IIRC) command line option to daemonize sbbs...

    Okay cool thank you, so how and were in sbbs.ini you do this or daemonize:-d

    you don't... leave sbbs.ini as

    ----->8 snip 8<-----
    [UNIX]
    blah
    Daemonize=False
    blah
    ----->8 snip 8<-----

    and then in your start up script, generally in /etc/init.d, the command line would be something like

    ----->8 snip 8<-----
    -blahblah-
    PATH=/bin:/sbin:/usr/bin:/usr/bin
    SBBSROOT=/sbbs
    DAEMON=$SBBSROOT/exec/sbbs

    # Command Line options (e.g. daemonize)
    OPTIONS="-d"
    -blahblah-
    $DAEMON $OPTIONS
    ----->8 snip 8<-----


    that last line, "$DAEMON $OPTIONS" is literally

    /sbbs/exec/sbbs -d


    my init.d script came from CVS... there's instructions in the wiki on how to pull it down and where to place it... it contains this header...

    ----->8 snip 8<-----
    #!/bin/sh

    # Debian Linux system service run script (init file) for Synchronet
    #
    # This file normally goes in your /etc/init.d directory
    #
    # $Id: sbbs.debian,v 1.4 2011/10/17 09:00:36 sbbs Exp $

    ### BEGIN INIT INFO
    # Provides: sbbs
    # Required-Start: $local_fs $remote_fs $network $syslog
    # Required-Stop: $local_fs $remote_fs $network $syslog
    # Default-Start: 2 3 4 5
    # Default-Stop: 0 1 6
    # Short-Description: Start/stop Synchronet BBS services
    # X-Interactive: false
    ### END INIT INFO

    ########################################
    # Synchronet BBS Debian startup script # ########################################
    # by Karloch <karloch@hispamsx.org> 8 Dec 2005

    # You can edit these vars to meet your system configuration
    ----->8 snip 8<-----

    this should be all you need unless you are going to try to mess with that systemd abomination... that has a completely different startup script methodology...

    )\/(ark

    Always Mount a Scratch Monkey
    Do you manage your own servers? If you are not running an IDS/IPS yer doin' it wrong...
    ... 42? 7 and a half million years and all you can come up with is 42?!
    ---
    * Origin: (1:3634/12.73)
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Sneaky@VERT/CHOICE to mark lewis on Monday, October 22, 2018 08:31:00
    Hi mark lewis

    On 2018 Oct 19 11:45:00, you wrote to me:
    Okay cool thank you, so how and were in sbbs.ini you do this or daemonize:-d

    you don't... leave sbbs.ini as

    Yes I have left sbbs.ini as

    ----->8 snip 8<-----
    [UNIX]
    blah
    Daemonize=False
    blah
    ----->8 snip 8<-----

    and then in your start up script, generally in /etc/init.d, the command line would be something like

    ----->8 snip 8<-----
    -blahblah-
    PATH=/bin:/sbin:/usr/bin:/usr/bin
    SBBSROOT=/sbbs
    DAEMON=$SBBSROOT/exec/sbbs

    # Command Line options (e.g. daemonize)
    OPTIONS="-d"
    -blahblah-
    $DAEMON $OPTIONS
    ----->8 snip 8<-----


    I have saved this message so I can go though it and edit were I have to, and to set it up and will check
    wiki as well, and this it what I am looking for, Thank you for this info.

    Ian S 1st Choice Core Sbbs Nz
    --- MultiMail/Win32 v0.49
    þ Synchronet þ 1st Choice Core - 1stchoicecore.co.nz
  • From mark lewis@VERT to Sneaky on Tuesday, October 23, 2018 09:01:06
    On 2018 Oct 22 08:31:00, you wrote to me:

    I have saved this message so I can go though it and edit were I have
    to, and to set it up and will check wiki as well, and this it what I
    am looking for,

    if you get the script as per the wiki, you don't have to edit anything... just chown, chmod and place it in init.d or rc.d directory depending on your system... there was something else i had to run that created the symlinks to the script in the proper init.X or rc.X directories so that sbbs would run on certain runlevels and be shutdown properly when needed... i don't recall what the command is/was to do that, though... i had to hunt it down again when i set
    up this installation :/

    Thank you for this info.

    you're welcome :)

    )\/(ark

    Always Mount a Scratch Monkey
    Do you manage your own servers? If you are not running an IDS/IPS yer doin' it wrong...
    ... Cat Physics #2: A cat will assume the shape of its container
    ---
    * Origin: (1:3634/12.73)
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Sneaky@VERT to mark lewis on Thursday, October 25, 2018 08:19:00
    Hi mark lewis


    On 2018 Oct 22 08:31:00, you wrote to me:

    I have saved this message so I can go though it and edit were I have
    to, and to set it up and will check wiki as well, and this it what I
    am looking for,

    if you get the script as per the wiki, you don't have to edit anything...

    Yes I have got the script of wike

    just chown, chmod

    just a bit unsure what you want me to do here per commands

    and place it in init.d or rc.d directory

    okay will do place it in init.d or rc.d directory

    depending on your system... there was something else i had to run that created the symlinks to the script in the proper init.X or rc.X directories so that sbbs would run on certain runlevels and be shutdown properly when needed... i don't recall what the command is/was to do
    that, though... i had to hunt it down again when i set up this installation :/

    okay thank you for hunt it down to created the symlinks to the script in the proper
    init.X or rc.X.

    Thank you
    Ian S 1st Choice Core Sbbs nz

    === MultiMail/Win32 v0.49
    --- SBBSecho 3.05-Win32
    * Origin: 1st Choice Core (3:770/330)
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Mortifis@VERT/ALLEYCAT to Sneaky on Wednesday, October 24, 2018 17:41:28
    Hi mark lewis


    On 2018 Oct 22 08:31:00, you wrote to me:

    I have saved this message so I can go though it and edit were I have to, and to set it up and will check wiki as well, and this it what I
    am looking for,

    if you get the script as per the wiki, you don't have to edit anything...

    Yes I have got the script of wike

    just chown, chmod

    just a bit unsure what you want me to do here per commands

    and place it in init.d or rc.d directory

    okay will do place it in init.d or rc.d directory

    IMHO on a Raspberry Pi wouldn't it be easier to just:

    sudo nano /etc/systemd/system/sbbs.service

    and paste in:

    [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

    [Install]
    WantedBy=multi-user.target

    save and exit then
    sudo systemctl enable sbbs

    shut your sbbs -nd process (ps -ef | grep sbbs) or pkill sbbs
    (you could 'touch/sbbs/data/shutdown' but that doesn't always kill the processes) then

    sudo service start sbbs

    now it is running as a service ... if you want to look at the logs simply

    cat /var/log/syslog | less

    or if you want to see some specific message (ie QNET-FTP) cat /var/log/syslog | grep QNET-FTP

    ---
    þ Synchronet þ Twisted Truckers BBS - Dartmouth NS Canada
  • From Sneaky@VERT/CHOICE to Mortifis on Thursday, October 25, 2018 15:33:00
    Hi Mortifis

    IMHO on a Raspberry Pi wouldn't it be easier to just:

    well yes it could I suppose.

    sudo nano /etc/systemd/system/sbbs.service

    Yep okay with this

    and paste in:

    [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

    [Install]
    WantedBy=multi-user.target

    save and exit then
    sudo systemctl enable sbbs

    Yep okay with this


    shut your sbbs -nd process (ps -ef | grep sbbs) or pkill sbbs

    not so mush with this at the moment not using qktmonitor
    just sbbs/exec/sbbs and use lowercase q to close its down
    so do I have to do the above as well -nd etc if so what the command to do
    this or after sbbs/exec/sbbs then q it shound be done

    (you could 'touch/sbbs/data/shutdown' but that doesn't always kill the processes) then

    Yep okay with this

    sudo service start sbbs

    Yep okay with this

    now it is running as a service ...

    okay cool

    if you want to look at the logs
    simply cat /var/log/syslog | less

    okay cool thank you

    or if you want to see some specific message (ie QNET-FTP)
    cat /var/log/syslog | grep QNET-FTP


    This great thank you.

    Ian S 2nd Choice Core sbbs Nz


    --- MultiMail/Win32 v0.49
    þ Synchronet þ 1st Choice Core - 1stchoicecore.co.nz
  • From Mortifis@VERT/ALLEYCAT to Sneaky on Thursday, October 25, 2018 09:28:25
    Hi Mortifis


    shut your sbbs -nd process (ps -ef | grep sbbs) or pkill sbbs

    not so mush with this at the moment not using qktmonitor
    just sbbs/exec/sbbs and use lowercase q to close its down
    so do I have to do the above as well -nd etc if so what the command to do
    this or after sbbs/exec/sbbs then q it shound be done

    if you ran sbbs daemonized then there is no where to Q [uit] so finding the process id to kill is needed ... ps -ef | grep sbbs will show the pid so if you wanted to kill -9 you'd have it, or you could just run pkill sbbs, this is by no means graceful, but you will be restarting synchronet right afterwards anyway :-)


    (you could 'touch/sbbs/data/shutdown' but that doesn't always kill the
    processes) then

    Yep okay with this

    Made a typo, that should be touch /sbbs/ctrl/shutdown

    sudo service start sbbs

    Yep okay with this

    now it is running as a service ...

    okay cool

    you don't have to worry about all of the run level stuff and graceful shutdowns, as a service the system knows how to be gentle on processes :-)


    if you want to look at the logs
    simply cat /var/log/syslog | less

    okay cool thank you

    or if you want to see some specific message (ie QNET-FTP)
    cat /var/log/syslog | grep QNET-FTP


    This great thank you.
    YW

    Ian S 2nd Choice Core sbbs Nz

    ---
    þ Synchronet þ Twisted Truckers BBS - Dartmouth NS Canada
  • From Digital Man@VERT to Mortifis on Thursday, October 25, 2018 11:54:33
    Re: Re: SBBS Lgs
    By: Mortifis to Sneaky on Thu Oct 25 2018 09:28 am

    Hi Mortifis


    shut your sbbs -nd process (ps -ef | grep sbbs) or pkill sbbs

    not so mush with this at the moment not using qktmonitor
    just sbbs/exec/sbbs and use lowercase q to close its down
    so do I have to do the above as well -nd etc if so what the command to do
    this or after sbbs/exec/sbbs then q it shound be done

    if you ran sbbs daemonized then there is no where to Q [uit] so finding the process id to kill is needed ... ps -ef | grep sbbs will show the pid so if you wanted to kill -9 you'd have it, or you could just run pkill sbbs, this is by no means graceful, but you will be restarting synchronet right afterwards anyway :-)

    Also, /var/run/sbbs.pid will give you the pid. And there's 'pgrep'.

    digital man

    Synchronet/BBS Terminology Definition #24:
    FF = Form Feed (ASCII 12, Ctrl-L)
    Norco, CA WX: 76.4øF, 61.0% humidity, 1 mph WNW wind, 0.00 inches rain/24hrs

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Sneaky@VERT/CHOICE to Mortifis on Friday, October 26, 2018 08:36:00
    Hi Mortifis

    Hi Mortifis

    so do I have to do the above as well -nd etc if so what the command to do
    this or after sbbs/exec/sbbs then q it shound be done

    if you ran sbbs daemonized then there is no where to Q [uit] so

    in Sbbs.ini I have daeonize=false or is that the same thing as daemonized
    or do I do this sbbs/exec/sbbs -nd or pkill or in sbbs/exec just pkill sbbs
    just tring to get my head around this part

    finding the process id to kill is needed ... ps -ef | grep sbbs will
    show the pid so if you wanted to kill -9 you'd have it, or you could
    just run pkill sbbs, this is by no means graceful, but you will be

    so I type run pkill sbbs in sbbs/exec (sorry)

    restarting synchronet right afterwards anyway :-)

    this is good anyway.


    (you could 'touch/sbbs/data/shutdown' but that doesn't always kill the processes) then

    Yep okay with this

    Made a typo, that should be touch /sbbs/ctrl/shutdown

    if every thing else doen't work will use this

    sudo service start sbbs

    Yep okay with this

    now it is running as a service ...

    okay cool

    you don't have to worry about all of the run level stuff and
    graceful shutdowns, as a service the system knows how to be gentle on processes :-)

    This is cool thanks


    Ian S 2nd Choice Core sbbs Nz

    --- MultiMail/Win32 v0.49
    þ Synchronet þ 1st Choice Core - 1stchoicecore.co.nz
  • From mark lewis@VERT to Sneaky on Saturday, October 27, 2018 15:27:48
    On 2018 Oct 25 08:19:00, you wrote to me:

    depending on your system... there was something else i had to run that
    created the symlinks to the script in the proper init.X or rc.X
    directories so that sbbs would run on certain runlevels and be
    shutdown properly when needed... i don't recall what the command
    is/was to do that, though... i had to hunt it down again when i set up
    this installation :/

    okay thank you for hunt it down to created the symlinks to the script
    in the proper init.X or rc.X.

    looking through my .bash_history file, it appears that this is the command i used...

    sudo update-rc.d sbbs enable 2 3 4 5


    )\/(ark

    Always Mount a Scratch Monkey
    Do you manage your own servers? If you are not running an IDS/IPS yer doin' it wrong...
    ... I'm not gonna lie to you. Heaven is a nice place. -Satan
    ---
    * Origin: (1:3634/12.73)
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From mark lewis@VERT to Mortifis on Saturday, October 27, 2018 15:29:30
    On 2018 Oct 24 17:41:28, you wrote to Sneaky:

    if you want to look at the logs simply

    cat /var/log/syslog | less

    why use cat and pipe the output to less when

    less /var/log/syslog

    works perfectly? or

    tail -F /var/log/syslog

    to follow the log? i also provided a quick script previously (monitor_sbbs) which only shows synchronet entries so you have all the normal system log stuff
    to wade through...

    or if you want to see some specific message (ie QNET-FTP) cat /var/log/syslog | grep QNET-FTP

    again with cat :)

    egrep -e "QNET-FTP" /var/log/syslog


    )\/(ark

    Always Mount a Scratch Monkey
    Do you manage your own servers? If you are not running an IDS/IPS yer doin' it wrong...
    ... Always assume the second try will be different.
    ---
    * Origin: (1:3634/12.73)
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Bucksworth@VERT/EMPTYKEG to mark lewis on Saturday, October 27, 2018 20:25:26
    On 2018 Oct 24 17:41:28, you wrote to Sneaky:

    if you want to look at the logs simply

    cat /var/log/syslog | less

    why use cat and pipe the output to less when

    less /var/log/syslog

    works perfectly? or

    tail -F /var/log/syslog

    tail doesn't give much output

    to follow the log? i also provided a quick script previously (monitor_sbbs) which only shows synchronet entries so you have all the normal system log stuff
    to wade through...

    or if you want to see some specific message (ie QNET-FTP) cat /var/log/syslog | grep QNET-FTP

    again with cat :)

    egrep -e "QNET-FTP" /var/log/syslog

    so, it's true, there's more than one way to skin a cat :-P
    seems sneaky has many options available to choose from :)

    ---
    þ Synchronet þ The Empty Keg BBS (slackware 14.2) - Lake Echo NS
  • From mark lewis@VERT to Bucksworth on Sunday, October 28, 2018 12:57:28
    On 2018 Oct 27 20:25:26, you wrote to me:

    cat /var/log/syslog | less

    why use cat and pipe the output to less when

    less /var/log/syslog

    works perfectly? or

    tail -F /var/log/syslog

    tail doesn't give much output

    Tail -F follows the file with all new output... you can also specify how many lines to go back with "-n xxxxx" like so...

    tail -F -n 5000 /var/log/syslog

    that'll display the last 5000 lines and follow the file even if it is deleted/renamed and restarted...

    again with cat :)

    egrep -e "QNET-FTP" /var/log/syslog

    so, it's true, there's more than one way to skin a cat :-P
    seems sneaky has many options available to choose from :)

    yep!

    )\/(ark

    Always Mount a Scratch Monkey
    Do you manage your own servers? If you are not running an IDS/IPS yer doin' it wrong...
    ... No one is listening until you make a mistake!
    ---
    * Origin: (1:3634/12.73)
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Sneaky@VERT to mark lewis on Sunday, October 28, 2018 10:34:00
    Hi mark lewis

    okay thank you for hunt it down to created the symlinks to the script
    in the proper init.X or rc.X.

    looking through my .bash_history file, it appears that this is the
    command i used...

    sudo update-rc.d sbbs enable 2 3 4 5


    Thank you for this command, and I get on to doing that now.

    Ian S 1st Choice Core Sbbs Nz

    === MultiMail/Win32 v0.49
    --- SBBSecho 3.05-Win32
    * Origin: 1st Choice Core (3:770/330)
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net