From 20f78098d162955bfd00cfde35db81227258d946 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Wed, 20 May 2020 22:30:48 +0200 Subject: [PATCH] fix systemd startlimit attributes --- templates/etc/systemd/system/minio.service.j2 | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/templates/etc/systemd/system/minio.service.j2 b/templates/etc/systemd/system/minio.service.j2 index d0edd83..80894e5 100644 --- a/templates/etc/systemd/system/minio.service.j2 +++ b/templates/etc/systemd/system/minio.service.j2 @@ -7,10 +7,6 @@ Wants=network-online.target After=network-online.target After=syslog.target -# Avoid noisy crashloops -StartLimitIntervalSec=60 -StartLimitBurst=5 - [Service] WorkingDirectory={{ minio_base_dir }} @@ -23,6 +19,9 @@ ExecStartPre=/bin/bash -c "[ -n \"${MINIO_VOLUMES}\" ] || echo \"Variable MINIO_ ExecStart={{ minio_base_dir }}/minio server $MINIO_OPTS $MINIO_VOLUMES Restart=always +# Avoid noisy crashloops +StartLimitInterval=60 +StartLimitBurst=5 StandardOutput=journal StandardError=inherit