summarylogtreecommitdiffstats
path: root/kafka-manager.service
blob: d2b74c0422ccb41406a1164e15512683e211c725 (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/kafka-manager -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