WordOps / WordOps

Install and manage a high performance WordPress stack with a few keystrokes

Home Page:https://wordops.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feat: make WordOps more resilient by adding `Restart=on-failure RestartSec=5s`

KeesCBakker opened this issue · comments

Hi, love WordOps and what is does! I think it can be a bit more resilient.

I had some problems with my VPS, causing MariaDB to go OOM. A few weeks later my php8.3-fpm went also OOM. No worries, can happen. But when I dove into the settings I saw these services would not auto recover. Would it be possible to add these auto recover configs?

For MariaDB I added to /lib/systemd/system/mariadb.service:

Restart=on-failure
RestartSec=5s

For php8.3-fpm I added through sudo systemctl edit php8.3-fpm.service:

[Service]
Restart=on-failure
RestartSec=5s

Think these settings might be nice to include in a future release.

Hello @KeesCBakker,
I will take a look on this.

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

Don't know if stale is the right word...

@ajohnclark, my comment was directed at the action that was taken by the GitHub actions bot:

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

As for the code, please read the main issue.

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

Hi @VirtuBox , any update on this? If I do it manually on my server, will it work?