Skip to content

Commit e270c73

Browse files
committed
Merge pull request #1305 from johanneswuerbach/router-template
chore(router): Use unit file templates
2 parents 61313fd + 87ed5b4 commit e270c73

3 files changed

Lines changed: 3 additions & 5 deletions

File tree

Makefile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,7 @@ install-data-containers: check-fleet
6666

6767
install-routers: check-fleet
6868
@$(foreach R, $(ROUTER_UNITS), \
69-
cp router/systemd/deis-router.service ./$(R) ; \
70-
$(FLEETCTL) load ./$(R) ; \
71-
rm -f ./$(R) ; \
69+
$(FLEETCTL) load router/systemd/$(R) ; \
7270
)
7371

7472
pull:

includes.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ define echo_yellow
4141
endef
4242

4343
SELF_DIR := $(dir $(lastword $(MAKEFILE_LIST)))
44-
ROUTER_UNITS = $(shell seq -f "deis-router.%g.service" -s " " $(DEIS_FIRST_ROUTER) 1 $(DEIS_LAST_ROUTER))
44+
ROUTER_UNITS = $(shell seq -f "deis-router@%g.service" -s " " $(DEIS_FIRST_ROUTER) 1 $(DEIS_LAST_ROUTER))
4545

4646
check-fleet:
4747
@LOCAL_VERSION=`$(FLEETCTL) -version`; \
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ ExecStopPost=/usr/bin/docker stop deis-router
1313
WantedBy=multi-user.target
1414

1515
[X-Fleet]
16-
X-Conflicts=deis-router.*.service
16+
X-Conflicts=deis-router@*.service

0 commit comments

Comments
 (0)