From bc12bd0028d62aa441da73c83b9832b0f2479255 Mon Sep 17 00:00:00 2001
From: "R.I.Pienaar" <rip@devco.net>
Date: Fri, 8 Nov 2024 16:01:01 +0100
Subject: [PATCH] Fix run commands

Signed-off-by: R.I.Pienaar <rip@devco.net>
---
 packager/templates/el/el8/tally.service | 4 ++--
 packager/templates/el/el8/tally.spec    | 2 +-
 packager/templates/el/el9/tally.service | 4 ++--
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/packager/templates/el/el8/tally.service b/packager/templates/el/el8/tally.service
index 34e036f..e78075f 100644
--- a/packager/templates/el/el8/tally.service
+++ b/packager/templates/el/el8/tally.service
@@ -8,7 +8,7 @@ StandardOutput=syslog
 StandardError=syslog
 User=root
 Group=root
-ExecStart={{cpkg_bindir}}/{{cpkg_name}} run --config={{cpkg_etcdir}}/config.json
+ExecStart={{cpkg_bindir}}/{{cpkg_name}} --component '*' --port 8080 --prefix choria_tally --config={{cpkg_etcdir}}/choria.conf
 
 [Install]
-WantedBy=multi-user.target
\ No newline at end of file
+WantedBy=multi-user.target
diff --git a/packager/templates/el/el8/tally.spec b/packager/templates/el/el8/tally.spec
index 5089291..d4b8f0a 100644
--- a/packager/templates/el/el8/tally.spec
+++ b/packager/templates/el/el8/tally.spec
@@ -42,7 +42,7 @@ rm -rf %{buildroot}
 %{__install} -m0644 dist/sysconfig %{buildroot}/etc/sysconfig/%{pkgname}
 %{__install} -m0644 dist/%{pkgname}-logrotate %{buildroot}/etc/logrotate.d/%{pkgname}
 %{__install} -m0755 %{binary} %{buildroot}%{bindir}/%{pkgname}
-%{__install} -m0755 dist/config.json %{buildroot}%{etcdir}/config.json
+%{__install} -m0755 dist/choria.conf %{buildroot}%{etcdir}/choria.conf
 
 touch %{buildroot}/var/log/%{pkgname}/%{pkgname}.log
 
diff --git a/packager/templates/el/el9/tally.service b/packager/templates/el/el9/tally.service
index 34e036f..e78075f 100644
--- a/packager/templates/el/el9/tally.service
+++ b/packager/templates/el/el9/tally.service
@@ -8,7 +8,7 @@ StandardOutput=syslog
 StandardError=syslog
 User=root
 Group=root
-ExecStart={{cpkg_bindir}}/{{cpkg_name}} run --config={{cpkg_etcdir}}/config.json
+ExecStart={{cpkg_bindir}}/{{cpkg_name}} --component '*' --port 8080 --prefix choria_tally --config={{cpkg_etcdir}}/choria.conf
 
 [Install]
-WantedBy=multi-user.target
\ No newline at end of file
+WantedBy=multi-user.target