contrib/systemd/README.md
This is a starter systemd unit and associated install instructions, to save new users the time of building up everything from scratch.
This was created and works as intended on Ubuntu 22.04 LTS (Jammy Jellyfish)
Note: I could also contribute packaging information for rpm and deb formats, if that's something that'll be useful.
Note: The assumed path of installation ($INSTALLDIR) is /opt/kafdrop. If any other path is used, then the service
file needs to be modified to use that path in the # Paths commented section.
Create the directory $INSTALLDIR and download the latest release there.
Create the kafdrop user and group:
systemd-sysusers --inline 'u kafdrop - "KafDrop user" $INSTALLDIR /usr/sbin/nologin'
start.sh to $INSTALLDIR, edit it to fix the startup parameters and options for your use case, and give it
execute permissionschmod 755 $INSTALLDIR/start.sh
kafdrop.service file to $INSTALLDIR and create a link to it in /etc/systemd/system(cd /etc/systemd/system && ln -s $INSTALLDIR/kafdrop.service)
systemctl daemon-reload
systemctl enable kafdrop.service && systemctl start kafdrop.service