Package: fair
Version: 0.5.3-4
Severity: minor
Tags: patch

Dear Maintainer,

   * What led up to the situation?
   During packaging of a different piece of software, someone on #debian-mentors
   IRC suggested I use ConditionFileExists in my systemd unit files.

   I searched for its usage using codesearch.debian.net and found just a single
   package using it.

   Turns out it should be ConditionPathExists, and by coincidence, fair has
   ConditionFileExists.

   * What exactly did you do (or not do) that was effective (or
     ineffective)?
   Changing ConditionFileExists to ConditionPathExists in both service units
   fixed the problem:
   - /usr/lib/systemd/system/fair-carrousel.service
   - /usr/lib/systemd/system/fair-transponder.service

   * What was the outcome of this action?
   The services depend on configuration. So when the systemd service is enabled,
   and started, but there's no configuration yet, it gives an error.

   After applying my change, it will just refuse to start and notify:
     Condition: start condition unmet at Mon 2025-09-15 09:42:28 CEST; 11min ago
             └─ ConditionPathExists=/etc/fair.conf was not met

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

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

Versions of packages fair depends on:
ii  init-system-helpers  1.69~deb13u1
pn  libavl1t64           <none>
ii  libc6                2.41-12

fair recommends no packages.

fair suggests no packages.
--- debian/fair.fair-carrousel.service.orig     2025-09-15 09:58:10.513459218 
+0200
+++ debian/fair.fair-carrousel.service  2025-09-15 09:58:32.286639154 +0200
@@ -3,7 +3,7 @@
 Documentation=man:carrousel(8)
 Wants=network-online.target
 After=network-online.target
-ConditionFileExists=/etc/fair.conf
+ConditionPathExists=/etc/fair.conf
 
 [Service]
 Type=forking
--- debian/fair.fair-transponder.service.orig   2025-09-15 09:58:21.889368823 
+0200
+++ debian/fair.fair-transponder.service        2025-09-15 09:58:42.649280398 
+0200
@@ -3,7 +3,7 @@
 Documentation=man:transponder(8)
 Wants=network-online.target
 After=network-online.target
-ConditionFileExists=/etc/fair.conf
+ConditionPathExists=/etc/fair.conf
 
 [Service]
 Type=forking

Reply via email to