From 9ce62c432d8c0219accdf883bef8d68511240ea4 Mon Sep 17 00:00:00 2001 From: rfaircloth-splunk Date: Sat, 13 Jun 2020 11:36:49 -0400 Subject: [PATCH] Update podman-systemd-general.md --- docs/gettingstarted/podman-systemd-general.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/docs/gettingstarted/podman-systemd-general.md b/docs/gettingstarted/podman-systemd-general.md index c1a3cf1..99e4f85 100644 --- a/docs/gettingstarted/podman-systemd-general.md +++ b/docs/gettingstarted/podman-systemd-general.md @@ -70,8 +70,14 @@ Environment="SC4S_LOCAL_CONFIG_MOUNT=-v /opt/sc4s/local:/opt/syslog-ng/etc/conf. TimeoutStartSec=0 Restart=always +ExecStartPre=/usr/bin/podman pull $SC4S_IMAGE ExecStartPre=/usr/bin/bash -c "/usr/bin/systemctl set-environment SC4SHOST=$(hostname -s)" -ExecStart=/usr/bin/podman run –pull=always -p 514:514 -p 514:514/udp -p 6514:6514 \ +ExecStartPre=/usr/bin/podman run \ + --env-file=/opt/sc4s/env_file \ + "$SC4S_LOCAL_CONFIG_MOUNT" \ + --name SC4S_preflight \ + --rm $SC4S_IMAGE -s +ExecStart=/usr/bin/podman run -p 514:514 -p 514:514/udp -p 6514:6514 \ -e "SC4S_CONTAINER_HOST=${SC4SHOST}" \ --env-file=/opt/sc4s/env_file \ "$SC4S_PERSIST_VOLUME" \ @@ -80,7 +86,8 @@ ExecStart=/usr/bin/podman run –pull=always -p 514:514 -p 514:514/udp -p 6514:6 "$SC4S_TLS_DIR" \ --name SC4S \ --rm $SC4S_IMAGE -Restart=on-successck -D -p udp +ExecStartPost=sleep 2 ; conntrack -D -p udp +Restart=on-success ``` * Execute the following command to create a local volume that will contain the disk buffer files in the event of a communication