Package: tenshi
Version: 0.13-9
Followup-For: Bug #1039392
User: [email protected]
Usertags: origin-ubuntu stonking ubuntu-patch
Control: tags -1 patch
Dear Maintainer,
In Ubuntu, I added a simple systemd service based on the existing init
script. Please see attached:
* debian/tenshi.service: add basic systemd service
(LP: #2153926, Closes: #1039392)
Thanks for considering the patch.
-Nick
diff -Nru tenshi-0.13/debian/tenshi.service tenshi-0.13/debian/tenshi.service
--- tenshi-0.13/debian/tenshi.service 1969-12-31 19:00:00.000000000 -0500
+++ tenshi-0.13/debian/tenshi.service 2026-09-04 11:56:33.000000000 -0400
@@ -0,0 +1,14 @@
+[Unit]
+Description=tenshi log monitoring and reporting tool
+After=remote-fs.target syslog.socket
+Requires=remote-fs.target syslog.socket
+
+[Service]
+Type=simple
+User=tenshi
+Group=tenshi
+ExecStart=/usr/sbin/tenshi -f
+ExecReload=/usr/bin/kill -HUP $MAINPID
+
+[Install]
+WantedBy=multi-user.target
diff -Nru tenshi-0.13/debian/tests/control tenshi-0.13/debian/tests/control
--- tenshi-0.13/debian/tests/control 2026-05-12 15:41:25.000000000 -0400
+++ tenshi-0.13/debian/tests/control 2026-09-04 11:56:56.000000000 -0400
@@ -1,2 +1,6 @@
Test-Command: tenshi -C debian/tests/files/testconf.conf
Restrictions: needs-root
+
+Test-Command: systemctl is-active tenshi.service
+Depends: @
+Restrictions: allow-stderr, needs-root