update-notifier-hp-firmware upstart job doesn't make sense in update-notifier; port to systemd

Bug #1604890 reported by Sebastien Bacher
This bug affects 1 person
Affects Status Importance Assigned to Milestone
hplip (Ubuntu)
Till Kamppeter

Bug Description

update-notifier ships a debian/update-notifier-hp-firmware.conf upstart job. Ideally a such job should be included in the package it's interacting with, hplip in this case.

We are also converting the user session to be using systemd so basically it means hplip should be including an systemd user job (if that's still something needed)

Doing that under systemd is probably best done using a udev rules triggering a systemd service

Revision history for this message
Sebastien Bacher (seb128) wrote :

Till, could you have a look to this one? Check if we still need that hp firmware script and if we do see if we can include a systemd job in hplip that does the same thing?

Changed in hplip (Ubuntu):
assignee: nobody → Till Kamppeter (till-kamppeter)
importance: Undecided → High
Revision history for this message
Martin Pitt (pitti) wrote :

Untested sketch: Add an udev rule like
    ACTION=="add", SUBSYSTEMS=="usb", ENV{ID_VENDOR_ID}=="XXXX", ENV{ID_MODEL_ID}=="YYYY", ENV{SYSTEMD_USER_WANTS}+="hp-firmware.service"

and add a /usr/lib/systemd/user/hp-firmware.service whose ExecStart= calls
/usr/bin/hp-plugin-ubuntu if necessary. Note that you probably need some shell commands there, use

  ExecStart=/bin/sh -ec 'shell code here; \
      more shell code there'

for that.

Martin Pitt (pitti)
summary: update-notifier-hp-firmware upstart job doesn't make sense in update-
- notifier
+ notifier; port to systemd
tags: added: systemd-session
Revision history for this message
Bryan Quigley (bryanquigley) wrote :

Some (hopefully helpful) notes when I was looking at this before:
Best summary of why it was added - https://bugs.launchpad.net/ubuntu/+source/update-notifier/+bug/734822
The printer appears to be from 2005.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.