From 26bb3fb81dbf3d1c0c392406c7f5f1395b72f7d6 Mon Sep 17 00:00:00 2001 From: Christian Quest Date: Sun, 6 Oct 2024 18:42:28 +0200 Subject: [PATCH] filter config file empty lines in syncoid.service --- confs/common/systemd/system/syncoid.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/confs/common/systemd/system/syncoid.service b/confs/common/systemd/system/syncoid.service index 68350c74..b5bf5e35 100644 --- a/confs/common/systemd/system/syncoid.service +++ b/confs/common/systemd/system/syncoid.service @@ -15,7 +15,7 @@ Type=oneshot # we also handle return result so that we get notified if there is an error. # Some tricks: use '$$' for $ for systemd some interpolation # + give syncoid a null input, as otherwise it consumes main input and we do loose commands -ExecStart=/bin/bash -c 'RESULT=0; grep -v "^#" /etc/sanoid/syncoid-args.conf | while read -a sync_args;do syncoid --quiet "$${sync_args[@]}"