Supercronic with LiteFS

Hi… This CMD directive is actually being ignored, since the strings in the [processes] table override it.

Process groups are geared for centralized databases, and as such they rarely “just work” with LiteFS, :dragon:. So, it would probably help to consider the overall question of what your cron jobs really do…


If they’re intended only to SSH into the primary every 24hrs, then this will be relatively straightforward. But if they require direct access to the database then Supercronic will instead need to always be running uniquely on the current primary itself—hopping around and around as handovers occur, :cricket:—a fair amount of effort.

(Or something with litefs run, which is probably very inconvenient with Node.)


Aside: In this forum, you can enclose pasted text in triple backticks (```) to prevent Markdown’s auto-format magic from mangling things (like []).

E.g.,

```text
  [processes]
    app  = "sh -c '/usr/sbin/sshd -D $SSH_PORT & litefs mount'"
             # beware of SIGINT gotchas in the above.
    cron = "supercronic /app/crontab"
```