summarylogtreecommitdiffstats
path: root/kafka-manager.service
blob: 1f8d4a969e1004e4ddd961083696e4a02ee2fb7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
[Unit]
Description=Kafka Manager
After=network.target

[Service]
Type=simple
PIDFile=/var/lib/kafka-manager/kafka-manager.pid
ExecStartPre=-/usr/bin/mkdir -p /var/lib/kafka-manager
ExecStartPre=/usr/bin/chown -R kafka-manager:kafka-manager /var/lib/kafka-manager/
ExecStart=/opt/kafka-manager/bin/cmak -Dconfig.file=/etc/kafka-manager.conf -Dpidfile.path=/var/lib/kafka-manager/kafka-manager.pid -Dapplication.home=/var/lib/kafka-manager
PermissionsStartOnly=true
ExecStop=/bin/kill $MAINPID
User=kafka-manager
Group=kafka-manager

[Install]
WantedBy=multi-user.target