Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kafka-manager debian package startup script #73

Open
Raboo opened this issue May 26, 2015 · 3 comments
Open

kafka-manager debian package startup script #73

Raboo opened this issue May 26, 2015 · 3 comments

Comments

@Raboo
Copy link

Raboo commented May 26, 2015

Hi,
I've just created a debian package with sbt.
And it creates
/usr/share/kafka-manager/bin/kafka-manager
/etc/default/kafka-manager
/etc/kafka-manager/application.conf

A sane default would be to add this line to ..../bin/kafka-manager so it reads /etc/default/kafka-manager

#!/usr/bin/env bash

[ -r /etc/default/kafka-manager ] && . /etc/default/kafka-manager

Another sane default would be to add these lines to /etc/default/kafka-manager.

export PIDFILE="/var/run/kafka-manager/play.pid"
export JAVA_OPTS="-Dpidfile.path=$PIDFILE -Dconfig.file=/etc/kafka-manager/application.conf $JAVA_OPTS"
export APPLICATION_SECRET="somekey"
export ZK_HOSTS="zookeeper01:2181,zookeeper02:2181"
@Raboo
Copy link
Author

Raboo commented May 26, 2015

I forgot, it's would also be nice if the package install created system user & group kafka-manager.

@nguyenvanthan
Copy link

@Raboo You can create a file in /usr/share/kafka-manager/conf/application.ini to pass the -D parameter
ex:

-Dpidfile.path=/path/pid -Dconfig.file={{ KAFKA_MANAGER_HOME }}/conf/application.conf -Dlogback.configurationFile=file:{{ KAFKA_MANAGER_HOME }}/conf/logger.xml -Dhttp.port=9000

it will be use by the script in /etc/init/kafka-manager.conf

@dazza-codes
Copy link

dazza-codes commented Sep 25, 2017

On Ubuntu 16.04 (possibly other distros), move from Upstart to Systemd, see e.g.

(Wow this issue is old.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants