Storage
MF-AutoRestart uses one SQLite database:
plugins/MF-AutoRestart/data.dbThere is no configurable alternative storage backend in the delivered source.
Stored Data
Section titled “Stored Data”The schema contains three tables:
| Table | Purpose |
|---|---|
schema_version |
Stores the plugin database schema version. |
dynamic_schedules |
Stores schedules created with /ar schedule add .... |
restart_logs |
Records completed, cancelled, or aborted restart outcomes. |
Dynamic schedule rows store:
idtypeday_of_weektime_strRestart log rows store:
timestamptrigger_typestatusObserved trigger values written by the source are AUTOMATIC and MANUAL. Observed status values are COMPLETED, CANCELLED, and ABORTED.
Threading
Section titled “Threading”Database operations are serialized through a dedicated single-thread executor. Startup opens/initializes SQLite asynchronously before the plugin enters its ready state.
Journal Policy: No WAL / No SHM
Section titled “Journal Policy: No WAL / No SHM”MF-AutoRestart requires SQLite rollback-journal DELETE mode.
The source:
- inspects the existing
journal_mode; - if it is
wal, asks SQLite to runwal_checkpoint(TRUNCATE); - asks SQLite to switch to
journal_mode=DELETE; - closes the migration connection;
- fails startup if
data.db-walordata.db-shmstill exists; - opens the normal runtime connection and verifies
journal_mode=DELETEagain.
The plugin does not manually delete WAL or SHM recovery sidecars.
With rollback-journal DELETE mode, SQLite may temporarily create:
data.db-journalwhile a transaction is active. That file is not WAL/SHM and is part of SQLite rollback-journal operation.
Schema Version
Section titled “Schema Version”The delivered source uses schema version 1. It initializes the schema version record when absent and rejects a database whose recorded schema version is newer than the plugin supports.
The source does not define a separate administrator migration command.
Backup and Recovery
Section titled “Backup and Recovery”MF-AutoRestart does not provide its own backup command. The safest operational boundary exposed by the plugin is a normal server stop/disable, which closes the SQLite connection asynchronously as part of shutdown.
Do not manually delete data.db-wal or data.db-shm as a recovery technique. The plugin intentionally fails closed if SQLite cannot retire those files during the WAL-to-DELETE transition.