• MIS Auto-Restart

    From Necromaster@21:1/122 to All on Tuesday, January 24, 2017 16:22:00
    Hello all. Is there a way to have MIS on windows 10 Auto-restart? I know
    this has been discussed in the past but I cannot locate the messages. For
    some unknown reason it keeps shutting off randomly. Thanks.

    --- Mystic BBS v1.12 A31 (Windows)
    * Origin: Necronomicon BBS: necrobbs.strangled.net:27 (21:1/122)
  • From bcw142@21:1/145 to Necromaster on Tuesday, January 24, 2017 16:46:00
    On 01/24/17, Necromaster said the following...
    Hello all. Is there a way to have MIS on windows 10 Auto-restart? I
    know this has been discussed in the past but I cannot locate the
    messages. For some unknown reason it keeps shutting off randomly. Thanks.

    The most basic trick is:

    @REM LOOP.BAT
    @ECHO OFF
    CD \MYSTIC
    :LOOP
    MIS
    TIMEOUT /T 5
    GOTO LOOP

    ...Trick or Treat? ;)

    --- Mystic BBS v1.12 A31 (Raspberry Pi)
    * Origin: Mystic Pi BBS bcw142.zapto.org (21:1/145)
  • From Necromaster@21:1/122 to bcw142 on Tuesday, January 24, 2017 18:00:00
    The most basic trick is:

    @REM LOOP.BAT
    @ECHO OFF
    CD \MYSTIC
    :LOOP
    MIS
    TIMEOUT /T 5
    GOTO LOOP


    Thanks bcw142, I tried this but it just keeps loading another MIS every 5 seconds when there is MIS already running.

    --- Mystic BBS v1.12 A31 (Windows)
    * Origin: Necronomicon BBS: necrobbs.strangled.net:27 (21:1/122)
  • From bcw142@21:1/145 to Necromaster on Tuesday, January 24, 2017 18:39:00
    On 01/24/17, Necromaster said the following...
    The most basic trick is:

    @REM LOOP.BAT
    @ECHO OFF
    CD \MYSTIC
    :LOOP
    MIS
    TIMEOUT /T 5
    GOTO LOOP

    Thanks bcw142, I tried this but it just keeps loading another MIS every 5 seconds when there is MIS already running.

    Odd, that's not what it does under normal Windows10, must have something to do with the Windows7 VM you're using. MIS is noted for dropping under Windows. I guess you need a fancier script that checks for MIS dropping, then restarts
    it. Most of us don't have that problem under Windows, I do know there are
    some others running under Windows7 in VMs, but not sure anyone else has that problem, it maybe you're the only one running the exact setup you are.

    --- Mystic BBS v1.12 A31 (Raspberry Pi)
    * Origin: Mystic Pi BBS bcw142.zapto.org (21:1/145)
  • From Pequito@21:1/126 to bcw142 on Tuesday, January 24, 2017 17:38:00
    On 01/24/17, bcw142 said the following...

    On 01/24/17, Necromaster said the following...
    Hello all. Is there a way to have MIS on windows 10 Auto-restart? I know this has been discussed in the past but I cannot locate the messages. For some unknown reason it keeps shutting off randomly. Thanks.

    The most basic trick is:

    @REM LOOP.BAT
    @ECHO OFF
    CD \MYSTIC
    :LOOP
    MIS
    TIMEOUT /T 5
    GOTO LOOP

    This only works if its MIS and not MIS2 in daemon mode.

    +- $s.s$s.s$ ----------------------------------------+
    | $ý"$$$"ý$ twinklebbs.homeip.net |
    | .$$$. winkle BBS twinklebbs.homeip.net:8080 |
    +-- .$$$$$. -----------------------------------------+
    $ý"~"ý$ Christopher Malo aka Pequito!

    --- Mystic BBS v1.12 A31 (Linux)
    * Origin: Twinkle BBS (21:1/126)
  • From Avon@21:1/101 to All on Wednesday, January 25, 2017 13:53:00
    On 01/24/17, Pequito pondered and said...

    The most basic trick is:

    @REM LOOP.BAT
    @ECHO OFF
    CD \MYSTIC
    :LOOP
    MIS
    TIMEOUT /T 5
    GOTO LOOP

    This only works if its MIS and not MIS2 in daemon mode.

    This works for me on Win 7 running MIS..

    Best, Paul

    --- Mystic BBS v1.12 A31 (Windows)
    * Origin: Agency BBS | telnet://agency.bbs.geek.nz (21:1/101)
  • From Pequito@21:1/126 to Necromaster on Tuesday, January 24, 2017 17:45:00
    On 01/24/17, Necromaster said the following...

    Hello all. Is there a way to have MIS on windows 10 Auto-restart? I
    know this has been discussed in the past but I cannot locate the
    messages. For some unknown reason it keeps shutting off randomly. Thanks.

    I know this has been replied to but best bet if this is MIS2 vs MIS can use
    the batch file bcw142 but need to add a file check to it.


    @ECHO OFF
    C:
    CD \MYSTIC
    :LOOP
    IF NOT EXIST C:\MYSTIC\SEMAPHORE\MIS.BSY (
    MIS
    )
    TIMEOUT /T 5
    GOTO LOOP

    I can go in more detail but that for the most part will make sure the file
    does not exist then restart MIS. The only other thing would need to do is possible check if the proc is still running but found this un-needed.

    Let me know if this helps, also is this MIS or MIS2 in daemon mode?

    Cheers!
    Pequito

    +- $s.s$s.s$ ----------------------------------------+
    | $ý"$$$"ý$ twinklebbs.homeip.net |
    | .$$$. winkle BBS twinklebbs.homeip.net:8080 |
    +-- .$$$$$. -----------------------------------------+
    $ý"~"ý$ Christopher Malo aka Pequito!

    --- Mystic BBS v1.12 A31 (Linux)
    * Origin: Twinkle BBS (21:1/126)
  • From Pequito@21:1/126 to Avon on Tuesday, January 24, 2017 18:00:00
    On 01/25/17, Avon said the following...

    On 01/24/17, Pequito pondered and said...

    The most basic trick is:

    @REM LOOP.BAT
    @ECHO OFF
    CD \MYSTIC
    :LOOP
    MIS
    TIMEOUT /T 5
    GOTO LOOP

    This only works if its MIS and not MIS2 in daemon mode.

    This works for me on Win 7 running MIS..

    I can take this a step further to really make it worth your wild.
    The below will ensure the process is not running, 2nd will check if the
    MIS.BSY file exist and remove it if its not running then restart MIS.

    This is using default locations when installed.

    @ECHO OFF

    :LOOP
    tasklist /FI "IMAGENAME eq mis.exe" 2>NUL | find /I /N "mis.exe">NUL

    IF NOT '%ERRORLEVEL%' == '0' (
    IF EXIST C:\MYSTIC\SEMAPHORE\MIS.BSY DEL C:\MYSTIC\SEMAPHORE\MIS.BSY
    MIS
    )
    TIMEOUT /T 5
    GOTO LOOP

    +- $s.s$s.s$ ----------------------------------------+
    | $ý"$$$"ý$ twinklebbs.homeip.net |
    | .$$$. winkle BBS twinklebbs.homeip.net:8080 |
    +-- .$$$$$. -----------------------------------------+
    $ý"~"ý$ Christopher Malo aka Pequito!

    --- Mystic BBS v1.12 A31 (Linux)
    * Origin: Twinkle BBS (21:1/126)
  • From Necromaster@21:1/122 to Pequito on Tuesday, January 24, 2017 20:32:00
    I can go in more detail but that for the most part will make sure the
    file does not exist then restart MIS. The only other thing would need
    to do is possible check if the proc is still running but found this un-needed.

    Let me know if this helps, also is this MIS or MIS2 in daemon mode?


    Thanks Pequito I will try that as well. This is for MIS.

    --- Mystic BBS v1.12 A31 (Windows)
    * Origin: Necronomicon BBS: necrobbs.strangled.net:27 (21:1/122)
  • From Necromaster@21:1/122 to bcw142 on Tuesday, January 24, 2017 20:50:00
    Never mind :) it works now. I have no idea why it was not working at first. Thanks a lot.

    --- Mystic BBS v1.12 A31 (Windows)
    * Origin: Necronomicon BBS: necrobbs.strangled.net:27 (21:1/122)
  • From Necromaster@21:1/122 to Pequito on Tuesday, January 24, 2017 21:46:00

    @ECHO OFF

    :LOOP
    tasklist /FI "IMAGENAME eq mis.exe" 2>NUL | find /I /N "mis.exe">NUL

    IF NOT '%ERRORLEVEL%' == '0' (
    IF EXIST C:\MYSTIC\SEMAPHORE\MIS.BSY DEL C:\MYSTIC\SEMAPHORE\MIS.BSY
    MIS
    )
    TIMEOUT /T 5
    GOTO LOOP

    Thanks a lot Pequito, I will try this method as well just in case :)

    --- Mystic BBS v1.12 A31 (Windows)
    * Origin: Necronomicon BBS: necrobbs.strangled.net:27 (21:1/122)
  • From Avon@21:1/101 to Pequito on Wednesday, January 25, 2017 19:09:00
    On 01/24/17, Pequito pondered and said...

    I can take this a step further to really make it worth your wild.

    I also added this in.

    TIMEOUT /T 5
    FIDOPOLL KILLBUSY

    I've found that's a good thing also :)

    Best, Paul

    --- Mystic BBS v1.12 A31 (Windows)
    * Origin: Agency BBS | telnet://agency.bbs.geek.nz (21:1/101)
  • From Pequito@21:1/126 to Avon on Wednesday, January 25, 2017 00:17:00
    On 01/25/17, Avon said the following...

    On 01/24/17, Pequito pondered and said...

    I can take this a step further to really make it worth your wild.

    I also added this in.

    TIMEOUT /T 5
    FIDOPOLL KILLBUSY

    I've found that's a good thing also :)

    I do this when I am using my maint to call the hubs, but I check before I
    kill to make sure I am not running more processes then I need to. =)

    +- $s.s$s.s$ ----------------------------------------+
    | $ý"$$$"ý$ twinklebbs.homeip.net |
    | .$$$. winkle BBS twinklebbs.homeip.net:8080 |
    +-- .$$$$$. -----------------------------------------+
    $ý"~"ý$ Christopher Malo aka Pequito!

    --- Mystic BBS v1.12 A31 (Linux)
    * Origin: Twinkle BBS (21:1/126)
  • From bamageek@21:1/140 to Necromaster on Wednesday, January 25, 2017 11:53:00
    Thanks bcw142, I tried this but it just keeps loading another MIS every 5 seconds when there is MIS already running.

    When MIS shuts down on your system, does it remove the MIS.BSY file in the semaphore directory?

    /**Dave's BBS telnet://davesbbs.com
    * @version 2.0 fsxNet: 21:1/140
    * GatorNet: 57:57/38
    **/

    --- Mystic BBS v1.12 A31 (Raspberry Pi)
    * Origin: fsxNet: Daves BBS (21:1/140)
  • From Necromaster@21:1/122 to bamageek on Wednesday, January 25, 2017 13:46:00

    When MIS shuts down on your system, does it remove the MIS.BSY file in
    the semaphore directory?

    I got it working correctly now bamageek. Thanks

    --- Mystic BBS v1.12 A31 (Windows)
    * Origin: Necronomicon BBS: necrobbs.strangled.net:27 (21:1/122)
  • From Avon@21:1/101 to bamageek on Thursday, January 26, 2017 16:44:00
    On 01/25/17, bamageek pondered and said...

    When MIS shuts down on your system, does it remove the MIS.BSY file in
    the semaphore directory?

    It should but if it ends abnormally you can end up with it still there in
    which case you need to manually remove it before being able to restart MIS

    Best, Paul

    --- Mystic BBS v1.12 A31 (Windows)
    * Origin: Agency BBS | telnet://agency.bbs.geek.nz (21:1/101)