• How to run this as a Mystic Event?

    From Hawk@21:2/158 to Avon on Thu May 18 18:04:49 2023
    In Mystic Windows What would a batch file look like as an event to shut the board down - run: mutil packmessages.ini then when that's done bring the board back online?

    |09Hawk |01(|12A|11C|14i|10D|01)
    |10P|03iranh|02a |05BBS |01(Reloaded)

    --- Mystic BBS v1.12 A47 2021/12/25 (Windows/32)
    * Origin: piranha.acid.org:27 With Full Bore RIPScrip Themes (21:2/158)
  • From ogg@21:2/147 to Hawk on Thu May 18 18:00:02 2023
    On 18 May 2023, Hawk said the following...

    In Mystic Windows What would a batch file look like as an event to shut the board down - run: mutil packmessages.ini then when that's done bring the board back online?

    Hawk (ACiD)
    Piranha BBS (Reloaded)

    --- Mystic BBS v1.12 A47 2021/12/25 (Windows/32)
    * Origin: piranha.acid.org:27 With Full Bore RIPScrip Themes (21:2/158)

    I just run that command as a weekly event. As a shell command, use "mutil weekly_maint.ini" in the event configuration.

    I'm curious as to why you want to restart mis after running the packmessages.ini?

    Here's my weekly_maint.ini:

    ; maint configuration file ;-------------------------------------------------------------------------
    ;
    ;========================================================================== ;========================================================================== ;==========================================================================

    [General]

    ; list of functions to perform on startup

    PurgeMessageBases = true
    PackMessageBases = true
    PackFileBases = true
    FileSort = true
    PurgeUserBase = true
    PackUserBase = true

    ; Set this value if you want to run mutil from a directory other than
    ; the root Mystic directory or the mysticbbs environment variable:

    mystic_directory=i:\mystic\mystic.dat

    ; If no directory is specified in the logfile name, mUtil will attempt
    ; to use the configured LOGS directory from in Mystic's configuration. ; Comment out to disable logging completely.logfile=i:\mystic\logs\mutil.log
    ; If set to TRUE (*HIGHLY* recommended for MUTIL) then it will write the
    ; log file in increments of 8KB at a time. If set to FALSE it will write
    ; each individual line as it is logged. This will significantly reduce
    ; MUTIL performance if set to FALSE.

    logcache=true

    ; Level 1 = basic
    ; Level 2 = verbose
    ; Level 3 = debug
    ;
    ; Note that the loglevel can also be set in a specific stanza and that value ; will override the value defined here only for that specific stanza

    loglevel=3

    ; logfile time stamp. defaults to NNN DD HH:II:SS if not set here
    ; logstamp = YYYYHHMMHHIISS
    ; Log roller type:
    ; 0 = Do not roll log files
    ; 1 = Roll by number of files/filesize
    ; 2 = Roll by number of days

    logtype = 2

    ; number of log files to keep (0 to disable log rolling)

    maxlogfiles = 7

    ; size of each log file in kilobytes

    maxlogsize = 100000

    ;========================================================================== ;========================================================================== ;==========================================================================

    [PurgeMessageBases]

    ; No options for this function

    ;========================================================================== ;========================================================================== ;==========================================================================

    [PackMessageBases]

    ; No options for this function

    ;========================================================================== ;========================================================================== ;==========================================================================

    [Pack FileBases]

    ; If true, MUTIL will check to make sure files exist, and will update their
    ; file size in the listing, optionally removing missing files (remove_missing)

    check_files = true

    ; If true, MUTIL will remove any files which do not exist from the file
    ; list database while checking integrity. Otherwise they will be flagged as
    ; OFFLINE in the file listing. 0 byte files are considered "missing"

    remove_missing = false

    ;========================================================================== ;========================================================================== ;==========================================================================

    [Link Messages]

    ; This function has no options

    ;========================================================================== ;========================================================================== ;==========================================================================

    [PurgeUserBase]

    ; Mark users for deletion that haven't called in days.
    ; This value cannot be less than 7

    days = 180

    ;========================================================================== ;========================================================================== ;========================================================================== [PackUserBase] ;========================================================================== ;========================================================================== ;==========================================================================

    [File Sort]

    ; Sort on which attribute (0=filename 1=size 2=date 3=downloads)

    attribute = 0

    ; Sort direction 0=Ascending (A to Z, 1 to 10) 1=Descending (Z to A, 10 to 1)

    direction = 0

    ;========================================================================== ;========================================================================== ;==========================================================================

    ogg
    Sysop, Altair IV BBS
    altairiv.ddns.net:2323

    ... Light year: 1/3 less calories than your regular year

    --- Mystic BBS v1.12 A49 2023/04/30 (Windows/64)
    * Origin: Altair IV BBS (21:2/147)
  • From Hawk@21:2/158 to ogg on Thu May 18 19:58:37 2023
    I just run that command as a weekly event. As a shell command, use
    "mutil weekly_maint.ini" in the event configuration.

    Thanks I may use this ini.

    |09Hawk |01(|12A|11C|14i|10D|01)
    |10P|03iranh|02a |05BBS |01(Reloaded)

    --- Mystic BBS v1.12 A47 2021/12/25 (Windows/32)
    * Origin: piranha.acid.org:27 With Full Bore RIPScrip Themes (21:2/158)
  • From Hawk@21:2/158 to ogg on Thu May 18 20:00:21 2023
    I'm curious as to why you want to restart mis after running the packmessages.ini?

    Because it takes forever to pack my messages and I don't want to hang around
    to bring the BBS back online

    |09Hawk |01(|12A|11C|14i|10D|01)
    |10P|03iranh|02a |05BBS |01(Reloaded)

    --- Mystic BBS v1.12 A47 2021/12/25 (Windows/32)
    * Origin: piranha.acid.org:27 With Full Bore RIPScrip Themes (21:2/158)
  • From ogg@21:2/147 to Hawk on Thu May 18 19:10:33 2023
    I'm curious as to why you want to restart mis after running the packmessages.ini?

    Because it takes forever to pack my messages and I don't want to hang around to bring the BBS back online

    Hawk (ACiD)

    I just run mine at like 4 am once a week. It's done before I'm even up.

    ogg
    Sysop, Altair IV BBS
    altairiv.ddns.net:2323

    ... That's not a bug, it's an undocumented feature

    --- Mystic BBS v1.12 A49 2023/04/30 (Windows/64)
    * Origin: Altair IV BBS (21:2/147)
  • From Warpslide@21:3/110 to Hawk on Thu May 18 21:37:40 2023
    On 18 May 2023, Hawk said the following...

    In Mystic Windows What would a batch file look like as an event to shut the board down - run: mutil packmessages.ini then when that's done bring the board back online?

    @ECHO OFF
    C:
    CD \MYSTIC
    MIS.EXE SHUTDOWN
    TIMEOUT /T 10 /NOBREAK
    MUTIL.EXE -run PackMessageBases
    MIS.EXE DAEMON (or MIS.EXE SERVER)

    Since you're shutting down MIS you would want to use Task Scheduler to run this instead of starting it inside of Mystic.


    Jay

    ... I have a collection of candy canes. They're all in mint condition

    --- Mystic BBS v1.12 A49 2023/04/30 (Linux/64)
    * Origin: Northern Realms (21:3/110)