Commit ba987453 authored by Geoff Simmons's avatar Geoff Simmons

RPM installs a systemd unit file.

parent 0227bd86
Pipeline #381 skipped
[Unit]
Description=Tracking Log Reader for Varnish Cache
Documentation=man:trackrdrd(3) man:libtrackrdr-kafka(3)
After=varnish.service
[Service]
# If you want to make changes to this file, please copy it to
# /etc/systemd/system/trackrdrd.service and make your changes there.
# This will override the file kept at /lib/systemd/system/trackrdrd.service
# Maximum size of the corefile.
LimitCORE=infinity
Type=forking
PIDFile=/var/run/trackrdrd.pid
ExecStart=/usr/bin/trackrdrd
ExecReload=/bin/kill -HUP $MAINPID
Restart=always
[Install]
WantedBy=multi-user.target
......@@ -7,7 +7,7 @@ License: BSD
Group: System Environment/Daemons
URL: https://code.uplex.de/uplex-varnish/trackrdrd
Source0: %{name}-%{version}.tar.gz
#Source1: varnish.initrc
Source1: trackrdrd.service
#Source2: varnish.sysconfig
#Source3: varnish.logrotate
#Source4: varnish_reload_vcl
......@@ -91,6 +91,8 @@ make install DESTDIR=%{buildroot}
install -D -m 0644 etc/trackrdrd.conf %{buildroot}%{_sysconfdir}/trackrdrd.conf
install -D -m 0644 etc/trackrdr-kafka.conf %{buildroot}%{_sysconfdir}/trackrdr-kafka.conf
install -D -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}/trackrdrd.service
# None of these for fedora/epel
find %{buildroot}/%{_libdir}/ -name '*.la' -exec rm -f {} ';'
find %{buildroot}/%{_libdir}/ -name '*.a' -exec rm -f {} ';'
......@@ -108,4 +110,6 @@ rm -rf %{buildroot}
%config(noreplace) %{_sysconfdir}/trackrdrd.conf
%config(noreplace) %{_sysconfdir}/trackrdr-kafka.conf
%{_unitdir}/trackrdrd.service
%changelog
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment