Package: tango-starter
Severity: normal
Tags: patch
X-Debbugs-Cc: [email protected]

tango-starter has a systemd service script which incorrectly depends on
tango-db. But starter and the tango-db don't need to be run on the same
host as you usually have one starter per host but only one tango-db in
the network.

Same issue with tango-access-control.

I'm attaching a patch for what I think needs to change. The init.d
scripts also need to change or be removed.

-- System Information:
Debian Release: 13.1
  APT prefers stable-security
  APT policy: (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.12.48+deb13-amd64 (SMP w/128 CPU threads; PREEMPT)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8),
LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages tango-starter depends on:
ii  init-system-helpers  1.69~deb13u1
ii  libc6                2.41-12
ii  libgcc-s1            14.2.0-19
ii  libomniorb4-3t64     4.3.3+ds1-1
ii  libomnithread4       4.3.3+ds1-1
ii  libstdc++6           14.2.0-19
pn  libtango-tools       <none>
pn  libtango10           <none>

tango-starter recommends no packages.

tango-starter suggests no packages.
diff --git a/debian/tango-accesscontrol.service b/debian/tango-accesscontrol.service
index 869c479..ccde348 100644
--- a/debian/tango-accesscontrol.service
+++ b/debian/tango-accesscontrol.service
@@ -1,8 +1,6 @@
 # based on https://tango-controls.readthedocs.io/en/9.3.5/tutorials-and-howtos/how-tos/how-to-integrate-with-systemd.html
 [Unit]
 Description=Tango Control System - AccessControl device server
-Wants=tango-db
-After=tango-db
 StopWhenUnneeded=true
 
 [Service]
diff --git a/debian/tango-starter.service b/debian/tango-starter.service
index e2e895e..231ed2e 100644
--- a/debian/tango-starter.service
+++ b/debian/tango-starter.service
@@ -3,7 +3,6 @@
 [Unit]
 Description=Tango Control System - Starter
 After=tango-accesscontrol.service
-Requires=tango-db.service
 ConditionPathExists=/etc/tangorc
 
 [Service]

Reply via email to