From 54efd707ccb07ec92cd4142b856dde16b7408dc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carl=20H=C3=B6rberg?= Date: Thu, 24 Nov 2022 23:45:39 +0100 Subject: [PATCH] Let the systemd service use /etc/amqproxy.ini as config --- build/deb | 2 ++ extras/amqproxy.service | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/build/deb b/build/deb index f239706..a215f4d 100755 --- a/build/deb +++ b/build/deb @@ -14,7 +14,9 @@ mkdir -p debroot/usr/share/man/man1 cp bin/amqproxy debroot/usr/bin #strip --strip-unneeded --remove-section=.comment --remove-section=.note debroot/usr/bin/* cp extras/amqproxy.service debroot/lib/systemd/system +cp config/example.ini debroot/etc/amqproxy.ini cp README.md debroot/usr/share/doc/amqproxy/README +cp CHANGELOG.md debroot/usr/share/doc/amqproxy/changelog cat > debroot/usr/share/doc/amqproxy/changelog.Debian << EOF amqproxy ($pkg_version-$pkg_revision) whatever; urgency=medium diff --git a/extras/amqproxy.service b/extras/amqproxy.service index 6fe750f..bec7229 100644 --- a/extras/amqproxy.service +++ b/extras/amqproxy.service @@ -5,7 +5,7 @@ Requires=network.target After=network.target [Service] -ExecStart=/usr/bin/amqproxy -p 5673 amqp://127.0.0.1:5672 +ExecStart=/usr/bin/amqproxy --config /etc/amqproxy.ini Restart=on-failure DynamicUser=yes LimitNOFILE=infinity