Skip to content

Commit

Permalink
Let the systemd service use /etc/amqproxy.ini as config
Browse files Browse the repository at this point in the history
  • Loading branch information
carlhoerberg committed Nov 24, 2022
1 parent e905340 commit 54efd70
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions build/deb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion extras/amqproxy.service
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 54efd70

Please sign in to comment.