Skip to content

Commit 9a71522

Browse files
committed
Updated service definition
1 parent 80c8b80 commit 9a71522

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

vagrant/roles/role_kafka_mirrormaker/templates/kafka/confluent-mirrormaker.service.j2

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,15 @@ Description=Apache Kafka - MirrorMaker
55
Type=simple
66
User=cp-kafka
77
Group=confluent
8-
ExecStart=/bin/kafka-mirror-maker --consumer.config {{ mirrormaker_consumer_config }} --producer.config {{ mirrormaker_producer_config }} --num.streams {{ mirrormaker_num_streams }} --abort.on.send.failure {{ mirrormaker_abort_on_failure }} --whitelist "{{ mirrormaker_topic_whitelist }}"
9-
TimeoutStopSec=180
10-
Restart=no
8+
ExecStart=/bin/kafka-mirror-maker \
9+
--consumer.config {{ mirrormaker_consumer_config }} \
10+
--producer.config {{ mirrormaker_producer_config }} \
11+
--num.streams {{ mirrormaker_num_streams }} \
12+
--abort.on.send.failure {{ mirrormaker_abort_on_failure }} \
13+
--whitelist \"{{ mirrormaker_topic_whitelist }}\"
14+
Restart=on-failure
15+
RestartSec=3
16+
Environment="JAVA_OPTS=-Djava.awt.headless=true"
1117

1218
[Install]
19+
WantedBy=multi-user.target

0 commit comments

Comments
 (0)