Package: mythtv-status
Version: 0.10.4-1
Severity: normal

Dear Maintainer,

In the current Debian Testing /etc/init.d/mythtv-status does nothing (at 
least when invoked by cron or from the command line). This causes the 
administrator to be spammed with messages like:

---
Subject: Cron <root@localhost> [ -x /etc/init.d/mythtv-status ] && 
/etc/init.d/mythtv-status reload > /dev/null

Job for mythtv-status.service failed. See 'systemctl status 
mythtv-status.service' and 'journalctl -xn' for details.
---

>From what I have been able to piece together this goes as follows:
* /etc/init.d/mythtv-status sources /lib/lsb/init-functions
* This runs /lib/lsb/init-functions.d/40-systemd
* This checks the presence of /run/systemd/system/ and soon after sets 
  _use_systemctl=1
* Because of this the following code is run which causes the script to 
  terminate.
        systemctl_redirect $0 $1
        exit $?

Since /lib/lsb/init-functions is sourced near the top of the file the 
script essentially does nothing. Furthermore systemd probably believes 
it's starting some kind of daemon and complains when it does not find 
the corresponding process or some such.

A workaround is to set _SYSTEMCTL_SKIP_REDIRECT=true just before 
sourcing /lib/lsb/init-functions. That's real ugly but at least it stops 
cron from spamming me. You may want to figure out a more proper and 
nicer fix though.


-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages mythtv-status depends on:
ii  debconf [debconf-2.0]  1.5.53
ii  libconfig-auto-perl    0.44-1
ii  libdate-manip-perl     6.47-1
ii  libmime-tools-perl     5.505-1
ii  libsys-sigaction-perl  0.20-1
ii  libwww-perl            6.08-1
ii  libxml-libxml-perl     2.0116+dfsg-1+b1
ii  perl                   5.20.1-2

Versions of packages mythtv-status recommends:
ii  libmythtv-perl    0.27.4+fixes20141115-dmo1
ii  libnet-upnp-perl  1.4.2-1

Versions of packages mythtv-status suggests:
pn  molly-guard  <none>

-- debconf information:
* mythtv-status/email: none
* mythtv-status/host: localhost
* mythtv-status/enable: yes


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to