Your message dated Sat, 25 May 2013 19:59:58 +0200
with message-id <[email protected]>
and subject line systemd: loses state on certain package upgrades: invoke-rc.d
from maint script
has caused the Debian Bug report #705019,
regarding systemd: loses state on certain package upgrades: invoke-rc.d from
maint script
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
705019: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=705019
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: systemd
Version: 44-11
Severity: normal
Note: I'm note completely sure this is a bug of systemd. If not, feel
free to close it.
I have a Wheezy-based system with systemd.
One of the services has configuration similar to:
# device-activated.service
[Unit]
Description=Device-activated Service
StopWhenUnneeded=true
[Service]
ExecStart=/usr/sbin/the-daemon
Restart=always
with the following udev rule:
SUBSYSTEM=="usb", ACTION=="add", \
ENV{PRODUCT}=="1234/5678/*", ENV{DEVTYPE}!="usb_interface", \
TAG+="systemd", \
ENV{SYSTEMD_WANTS}="device-activated.service"
The result is that when the device with the right vendor/product ID is
plugged in, systemd "wants" the service and it is run. When it is
unplugged, systemd no longer wants it and the service is stopped.
However it seems that 'systemctl daeomn-reload' resets the state of
systemd.
'systemctl daemon-reload' is also run automatically is
'/etc/init.d/someservice' is run from a dpkg maintaier script (through
/lib/lsb/init-functions.d/40-systemd , assuming that the script sources
the lsb functions). Which makes our service stop on quite a few package
upgrades.
Should this be considered a bug of systemd? If so: any hope of fixing it
any time soon?
-- System Information:
Debian Release: 7.0
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 3.2.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=he_IL.utf8, LC_CTYPE=he_IL.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
--- End Message ---
--- Begin Message ---
Since there was no followup from Tzafir and this just looks like an
incorrect use of StopWhenUnneeded, I'm going to close this bug report.
If you feel there is something that needs to be done in systemd, feel
free to re-open the bug report, providing more information.
Michael
--
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?
signature.asc
Description: OpenPGP digital signature
--- End Message ---