Skip to content

Commit

Permalink
Change Environment to EnvironmentFile in systemd unit file
Browse files Browse the repository at this point in the history
  • Loading branch information
A1EF committed Jul 8, 2023
1 parent b021eac commit 41db060
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion debian/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ RPM_BUILDING/SOURCES/$(FULL_PACKAGE_TITLE)-$(RPM_VERSION).tar.gz: rpm-build-area
rm -rf $(FULL_PACKAGE_TITLE)-$(RPM_VERSION)
mkdir $(FULL_PACKAGE_TITLE)-$(RPM_VERSION)
cp -R $(DESTDIR)/* $(FULL_PACKAGE_TITLE)-$(RPM_VERSION)
sed "s@##RPMVERSION##@$(RPM_VERSION)@g; s@##RPMRELEASE##@$(RPM_RELEASE_ID)@g" < debian/$(FULL_PACKAGE_TITLE).spec.in > $(FULL_PACKAGE_TITLE)-$(RPM_VERSION)/$(FULL_PACKAGE_TITLE).spec
sed "s@##RPMVERSION##@$(RPM_VERSION)@g; s@##RPMRELEASE##@$(RPM_RELEASE_ID)@g" < debian/$(FULL_PACKAGE_TITLE).spec.in > $(FULL_PACKAGE_TITLE)-$(RPM_VERSION)/$(FULL_PACKAGE_TITLE).spec
rm -f $@ && tar -czf $@ $(FULL_PACKAGE_TITLE)-$(RPM_VERSION)
rm -rf $(FULL_PACKAGE_TITLE)-$(RPM_VERSION)

Expand Down
1 change: 1 addition & 0 deletions debian/confluent-kafka-rest
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
LOG_DIR=/var/log/confluent/kafka-rest
2 changes: 1 addition & 1 deletion debian/confluent-kafka-rest.service
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ After=network.target confluent-kafka.target
Type=simple
User=cp-kafka-rest
Group=confluent
Environment="LOG_DIR=/var/log/confluent/kafka-rest"
EnvironmentFile=-/etc/sysconfig/confluent-kafka-rest
ExecStart=/usr/bin/kafka-rest-start /etc/kafka-rest/kafka-rest.properties
LimitNOFILE=100000
TimeoutStopSec=180
Expand Down
1 change: 1 addition & 0 deletions debian/confluent-kafka-rest.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ fi
/usr/share/doc/kafka-rest

%config(noreplace) /etc/kafka-rest/*
%config(noreplace) /etc/sysconfig/confluent-kafka-rest

%clean
#used to cleanup things outside the build area and possibly inside.
Expand Down

0 comments on commit 41db060

Please sign in to comment.