r/minio: Start more reliably on boot
The MinIO service often fails to start from a cold boot. Delaying starting the service until the network is online, plus increasing the startup timeout, should help with this. If not, enabling auto restart will let systemd try to start the service again if it still fails to come up on time.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
[Unit]
|
||||
Description=MinIO Object Storage
|
||||
Wants=network.target
|
||||
After=network.target
|
||||
Wants=network-online.target
|
||||
After=network-online.target
|
||||
|
||||
[Container]
|
||||
Image={{ minio_container_image }}:{{ minio_version }}
|
||||
@@ -16,6 +16,8 @@ NoNewPrivileges=yes
|
||||
|
||||
[Service]
|
||||
ExecReload=/bin/kill -HUP $MAINPID
|
||||
TimeoutStartSec=5min
|
||||
Restart=always
|
||||
MemoryDenyWriteExecute=yes
|
||||
PrivateTmp=yes
|
||||
ProtectClock=yes
|
||||
|
||||
Reference in New Issue
Block a user