• .BSY files

    From Charles Pierson@21:4/127 to All on Sat Dec 26 16:10:33 2020
    Yesterday, I wasn't paying attention and my dogs knocked the power cord loose for my phone. Normally it's not a big deal, but my phone was really needing
    to charge, so shut down.

    Apparently mutil was running at thee time, because when I turned the phone
    back on and restarted the BBS, it kept giving a res1 error when the m8s
    server tried to run mutil. After a few minutes, I found mutil.bsy was in the semaphore directory, deleted it, and all is good now.

    However, in case for some reason in the future this were to happen again, is there some way to check on startup for .bsy files and delete them automatically?

    Thanks

    --- Mystic BBS v1.12 A46 2020/08/26 (Raspberry Pi/32)
    * Origin: theoasisbbs.ddns.net:1357 (21:4/127)
  • From Bucko@21:4/131 to Charles Pierson on Sat Dec 26 13:37:46 2020
    On 26 Dec 2020, Charles Pierson said the following...


    However, in case for some reason in the future this were to happen
    again, is there some way to check on startup for .bsy files and delete them automatically?


    Todd Solaris from Error 404 created a bat file which deletes all .bsy files
    and resets the BBS, I am sure you can convert it to Linux. I have used it in the past on Windows and it works flawlessly..

    --- Mystic BBS v1.12 A46 2020/08/26 (Windows/32)
    * Origin: The Wrong Number Family Of BBS' - Wrong Number ][ (21:4/131)
  • From Warpslide@21:3/110 to Charles Pierson on Sat Dec 26 14:04:25 2020
    On 26 Dec 2020, Charles Pierson said the following...

    However, in case for some reason in the future this were to happen
    again, isthere some way to check on startup for .bsy files and delete
    them automatically?

    You can add: mis poll killbusy all

    Somewhere in there before you startup Mystic, that will delete any and all of the .bsy files.

    Jay

    --- Mystic BBS v1.12 A47 2020/11/23 (Raspberry Pi/32)
    * Origin: Northern Realms (21:3/110)
  • From Zip@21:1/202 to Charles Pierson on Sun Dec 27 04:40:45 2020
    Hello Charles!

    On 26 Dec 2020, Charles Pierson said the following...
    However, in case for some reason in the future this were to happen
    again, isthere some way to check on startup for .bsy files and delete themautomatically?

    If you're starting MIS (Mystic Internet Servers) through systemd, you can add the following to the [Service] stanza of your mis.service file (or whatever
    you call it):

    ExecStartPre=-/mystic/mis POLL KILLBUSY all
    ExecStopPost=-/mystic/mis POLL KILLBUSY all

    (Adjust the paths to the 'mis' binary as needed.)

    Best regards
    Zip

    --- Mystic BBS v1.12 A47 2020/12/04 (Linux/64)
    * Origin: Star Collision BBS, Uppsala, Sweden (21:1/202)
  • From paulie420@21:2/150 to Zip on Sun Dec 27 10:28:04 2020
    If you're starting MIS (Mystic Internet Servers) through systemd, you
    can addthe following to the [Service] stanza of your mis.service file
    (or whateveryou call it):

    ExecStartPre=-/mystic/mis POLL KILLBUSY all
    ExecStopPost=-/mystic/mis POLL KILLBUSY all

    (Adjust the paths to the 'mis' binary as needed.)
    Zip

    Lol, you know - I still haven't bothered to put my BBS in a system service yet?! And I have like 4 things that I have to keep loaded for it now. :P

    I went ahead and grabbed this msg... just so I can cheat and have everything ready for me when I do... Heck, I have to add mystic, talisman, doorparty, MRC... you know the drill - I swear, I have to VNC in and load all four things everything my BBS box goes down. :P

    One of these days....



    |07p|15AULIE|1142|07o
    |08.........

    --- Mystic BBS v1.12 A47 2020/11/23 (Raspberry Pi/32)
    * Origin: 2o fOr beeRS bbs>>>20ForBeers.com:1337 (21:2/150)
  • From Warpslide@21:3/110 to paulie420 on Sun Dec 27 14:32:19 2020
    On 27 Dec 2020, paulie420 said the following...

    Lol, you know - I still haven't bothered to put my BBS in a system serviceyet?!

    I don't have Mystic running a service yet either. I have a .sh script set to run Mystic on startup, but at ryan's advice I just setup DoorParty as a service.

    I might try and get Mystic setup the same way soon.

    Jay

    --- Mystic BBS v1.12 A47 2020/11/23 (Raspberry Pi/32)
    * Origin: Northern Realms (21:3/110)
  • From Zip@21:1/202 to paulie420 on Mon Dec 28 10:32:34 2020
    Hello paulie420!

    On 27 Dec 2020, paulie420 said the following...
    I went ahead and grabbed this msg... just so I can cheat and have everything ready for me when I do... Heck, I have to add mystic,

    :-D

    The entire /etc/systemd/system/mis.service file looks like this:

    [Unit]
    Description=Mystic Internet Servers (MIS) for Mystic BBS

    After=network-online.target
    StartLimitIntervalSec=0

    [Service]
    Type=forking

    WorkingDirectory=/mystic
    Environment=mysticbbs=/mystic

    ExecStart=/mystic/mis root ${mysticbbs} daemon PIDFile=/mystic/semaphore/mis.bsy
    ExecStop=/mystic/mis root ${mysticbbs} shutdown

    ExecStartPost=/usr/bin/timeout -k 1 5 /bin/bash -c "while :; do [ -e /mystic/semaphore/mis.bsy ] && break; /bin/sleep 1; done; exit 0"

    Restart=always
    RestartSec=30

    ExecStartPre=-/mystic/mis POLL KILLBUSY all
    ExecStopPost=-/mystic/mis POLL KILLBUSY all

    User=bbs
    Group=bbs

    [Install]
    WantedBy=multi-user.target

    Best regards
    Zip

    --- Mystic BBS v1.12 A47 2020/12/04 (Linux/64)
    * Origin: Star Collision BBS, Uppsala, Sweden (21:1/202)