Skip to content

Commit

Permalink
use --control option instead of build options
Browse files Browse the repository at this point in the history
  • Loading branch information
remicollet committed Jan 15, 2019
1 parent 9eedfb9 commit 2dc791b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pkg/rpm/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ endif
CONFIGURE_ARGS=\
--prefix=/usr \
--state=%{_sharedstatedir}/unit \
--control="unix:/var/run/unit/control.sock" \
--control="unix:/var/run/control.unit.sock" \
--pid=/var/run/unit.pid \
--log=/var/log/unit.log \
--tests \
Expand Down
4 changes: 2 additions & 2 deletions pkg/rpm/rpmbuild/SOURCES/unit.service
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# the following:

# [Service]
# Environment="UNITD_OPTIONS=--log /var/log/unit/unit.log --pid /run/unit/unit.pid"
# Environment="UNITD_OPTIONS=--control unix:/run/unit/control.sock --log /var/log/unit/unit.log --pid /run/unit/unit.pid"

[Unit]
Description=NGINX Unit
Expand All @@ -16,7 +16,7 @@ After=network-online.target

[Service]
Type=simple
Environment="UNITD_OPTIONS=--log /var/log/unit/unit.log --pid /run/unit/unit.pid"
Environment="UNITD_OPTIONS=--control unix:/run/unit/control.sock --log /var/log/unit/unit.log --pid /run/unit/unit.pid"
ExecStart=/usr/sbin/unitd $UNITD_OPTIONS --no-daemon
ExecReload=
RuntimeDirectory=unit
Expand Down
2 changes: 1 addition & 1 deletion pkg/rpm/rpmbuild/SOURCES/unit.sysconf
Original file line number Diff line number Diff line change
@@ -1 +1 @@
UNITD_OPTIONS="--log /var/log/unit/unit.log --pid /var/run/unit/unit.pid"
UNITD_OPTIONS="--control unix:/var/run/unit/control.sock --log /var/log/unit/unit.log --pid /var/run/unit/unit.pid"

0 comments on commit 2dc791b

Please sign in to comment.