Skip to content
Snippets Groups Projects
Commit 2330227c authored by ale's avatar ale
Browse files

Add an "iprep-tail" systemd unit to the Debian package

parent 2a8fc757
Branches
No related tags found
No related merge requests found
Pipeline #14998 failed
IPREP_PATTERNS=/etc/iprep/patterns
IPREP_SERVER=
[Unit]
Description=Tailer for iprep
After=nginx.service
[Service]
EnvironmentFile=-/etc/default/iprep-tail
ExecStart=journalctl --output=cat | iprep tail --patterns=$IPREP_PATTERNS --server=$IPREP_SERVER
NoNewPrivileges=yes
ProtectSystem=full
ReadOnlyDirectories=/
[Install]
WantedBy=multi-user.target
example.patterns etc/iprep/patterns
......@@ -8,3 +8,8 @@ export DH_GOLANG_EXCLUDES = vendor
override_dh_auto_install:
dh_auto_install -- --no-source
override_dh_systemd_enable:
dh_systemd_enable --no-enable --name=iprep-tail
override_dh_systemd_start:
dh_systemd_start --no-start --name=iprep-tail
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment