=== Cimi_ is now known as cimi
=== liuxg_ is now known as liuxg
flexiondotorgMorning desktopers. Just me?09:32
davmor2Morning all09:57
davmor2man nothing but meetings so far this morning09:58
davmor2flexiondotorg: you are not alone \o/09:58
flexiondotorgdavmor2, Hello09:58
davmor2flexiondotorg: man that is a big echo09:59
flocculant'cho 'cho 'cho12:18
=== alan_g is now known as alan_g|lunch
tkamppeterxnox, hi14:13
=== alan_g|lunch is now known as alan_g
ximionLaney: hi! regarding the AppStream "your data is wrong" issue, I hope I can resolve the autopkgtest issues today and make the package ready for x-updates14:17
ximionthe AS test failure is harmless (and I should have fixed it right away...), the Isenkram issue is weird, doesn't even seem related - could be triggered due to AS now exposing more metadata14:18
ximionin any case, I'll look into that14:18
xnoxtkamppeter, yes?15:39
tkamppeterI want to ask you whether you could help on bug 1642966.15:45
ubot5`bug 1642966 in systemd (Ubuntu) "package cups-daemon 2.1.3-4 failed to install/upgrade: subprocess new pre-removal script returned error exit status 1" [High,Confirmed] https://launchpad.net/bugs/164296615:45
tkamppeterHave a look especially at comment #49.15:45
tkamppeterIt looks for me that something was changed recently having the debhelper not shutting down the cups.path unit file any more during shutdown, making CUPS being triggered right after the shutdown of the main unit and so the shutdown break.15:47
tkamppeterLooks like a problem in the debhelpers for systemd.15:47
tkamppeterxnox ^^15:47
xnoxtkamppeter, bug report from mark.... horum.15:50
tkamppeterxnox, tons of duplicates, sabdfl is only one of the people hitting this bug.15:50
xnoxtkamppeter, something is very wrong. Still reading. My current guess is that '.path' unit is missing partof/bindsto => such that whenever the main service file is gracefully stopped, the path unit should stop too, as we are done with this thing.15:53
xnoxsuspecting that daemon removes file from monitored path, on shutdown, which triggers the .path unit, to restart the thing again.15:53
xnoxtkamppeter, also I use google chrome printer (e.g. upload things to google drive / google chrome and print from there direct to printer) e.g. I have stopped using cups itself on ubuntu years ago =/15:55
xnoxbut i can setup up cups to play with this.15:56
xnoxtkamppeter, re comment #39 i think you need "PartOf=" is some of these units https://www.freedesktop.org/software/systemd/man/systemd.unit.html -> Configures dependencies similar to Requires=, but limited to stopping and restarting of units. When systemd stops or restarts the units listed here, the action is propagated to this unit. Note that this is a one-way dependency — changes to this unit do not affect the listed units.15:58
tkamppeterxnox, CUPS has a so-called keepalive file with which it tells whether it should be started right on the next boot (if it has remaining jobs, shares printers, or the web interface is active) or not (start on demand only, like on next job) .15:59
tkamppeterSo on shutdown CUPS removes the keepalive file if on next boot only on-demand is needed, and it keeps the file if on next boot CUPS is needed right away.16:00
xnoxtkamppeter, in systemd's opinion i would start cups on boot, always, and then auto-shutdown if not needed (no jobs left, no shared printers, to web interface active) and disintegrate back into on demand launch for next job if and when that arrives.16:01
xnoxthis on-demand logic is backwards, and .path units are not meant for this type of state conservation.16:02
tkamppeterxnox, adding PartOf=cups in cups.path (and cups.socket) should solve the problem. Am I right?16:03
xnoxtkamppeter, hehe =) just writting "xnox," in the comment does not send me an owl or a telegram =) but nice try. You could have subscribed me to the bug report, before adding that comment.16:04
xnoxtkamppeter, i believe so. But i think you only want that on the .path unit.16:04
xnoxtkamppeter, because you want .socket to be alive (for on demand printing?!) to active the otherwise dead .service unit.16:04
xnoxtkamppeter, but before uploading that it needs testing. This is certainly an interesting bug to work on.16:05
xnoxtargetting this for myself to look at before break for christmas.16:05
tkamppeterxnox, I had subscribed you to the bug and you are still subscribed.16:05
xnoxtkamppeter, huh, i do have emails about it. but they are fairly context less and marked as read. I'm so sorry for missing this. And thank you for pinging me about it.16:07
tkamppeterxnox, it was some days after my comment #49, when I realized that there was no answer from the systemd or debhelper side, that I decided to subscribe you and add comment #50 to assure that you get a notification.16:08
tkamppeterxnox, I did not want to re-post the longish comment #49.16:08
tkamppeterxnox, note also that the unit files of CUPS are supplied upstream. So you should also report an upstream bug on CU{PS, either about a fix for cups.path or about always starting CUPS on boot but closing immediately if nothing has to be done from boot on.16:20
xnoxtkamppeter, ack.16:23
tkamppeterxnox, what do I have to run after editing a unit file?16:23
xnoxtkamppeter, systemctl daemon-reload16:24
tkamppeterxnox, Thank you. I have now added PartOf=cups.service to the [Unit] section of cups.path and then done the daemon-reload. With this I do not get the error message in the reproducer of comment #18 any more.16:27
tkamppeterxnox, seems that this is the solution, to be applied in cups upstream.16:27
xnoxtkamppeter, to use the statefile to launchd cupd on boot only, i think you want a generator that does "[ -f /var/lib/that/state/file ] && ln -s ../../lib/systemd/system/cups.service $1/multi-user.target.wants/cups.service" or some such.16:33
xnoxtkamppeter, such that on boot, systemd runs the generators; which checks if that file is on disk; and if it is, adds cups.service to the initial transaction of service to start on boot.16:34
tkamppeterxnox, I think I will stay with CUPS' architecture and try the adding of the "PartOf=cups.service" at first.16:36
tkamppeterxnox, posted https://github.com/apple/cups/issues/493516:42
tkamppeterThe bug bot is not recognizing GitHub issues.16:43
tkamppeterxnox, I asked the users for testing now, comment #5216:48

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!