Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #203046
| From | Michael Biebl <biebl@debian.org> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: systemd+anacron breaks cron jobs |
| Date | 2018-12-05 11:10 +0100 |
| Message-ID | <x1ChX-ET-11@gated-at.bofh.it> (permalink) |
| References | <x1zk5-786-3@gated-at.bofh.it> <x1Ag9-7Gb-3@gated-at.bofh.it> <x1Azv-81W-5@gated-at.bofh.it> <x1BlU-5N-7@gated-at.bofh.it> <x1BFg-cu-11@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
[Multipart message — attachments visible in raw view] - view raw
Am 05.12.18 um 10:04 schrieb Kamil Jońca: > Michael Biebl <biebl@debian.org> writes: >>> which in turn, can break ALL your "user" units) >> >> I'd be interested to know, what exactly you have in mind here. I'm not >> aware of such a breakage. > > For example: I have (--user) > kj-keepassx.service - my own service with keepasx > xscreensaver-monitor.service - my own service which to monitor screensaver > > These services should NOT be run withoud graphical login. If those services are tied to a X login session, they should not be started via systemd --user (at least, not yet) Let me go into a bit more detail. There is only ever *one* systemd --user instance per user. It is typically started, the first time you log in and stopped, once there is no more active login session for a particular user. If you have multiple active login sessions (say X, and one console login on tty2), you still have only one systemd --user instance. If you now logout from X, the systemd --user instance is not stopped, only if you also logout from tty2. I hope, you can now see that your kj-keepassx.service is not going to work. What you really want, is to start that service as part of a X login session. Those are traditionally handled via /etc/xdg/autostart and ~/.config/autostart There are attempts to provide such a XDG autostart equivalent facility in systemd, by providing a target, which becomes active once a X session starts and becomes inactive, once the X session ends. User units which are supposed to be tied to X sessions can then bind to that target. See https://blogs.gnome.org/laney/2018/06/26/starting-sessions-with-systemd/ if you want to read a bit more about it. For the time being, starting a service via a systemd user service which is bound to the life-time of an X session, is not really supported and I would recommend you use ~/.config/autostart for it instead. Regards, Michael -- Why is it that all of the instruments seeking intelligent life in the universe are pointed away from Earth?
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: systemd+anacron breaks cron jobs Michael Biebl <biebl@debian.org> - 2018-12-05 08:00 +0100
Re: systemd+anacron breaks cron jobs Michael Biebl <biebl@debian.org> - 2018-12-05 09:00 +0100
Re: systemd+anacron breaks cron jobs kjonca@fastmail.com (Kamil Jońca) - 2018-12-05 09:20 +0100
Re: systemd+anacron breaks cron jobs Michael Biebl <biebl@debian.org> - 2018-12-05 10:10 +0100
Re: systemd+anacron breaks cron jobs kjonca@poczta.onet.pl (Kamil Jońca) - 2018-12-05 10:30 +0100
Re: systemd+anacron breaks cron jobs Michael Biebl <biebl@debian.org> - 2018-12-05 11:10 +0100
Re: systemd+anacron breaks cron jobs kjonca@fastmail.com (Kamil Jońca) - 2018-12-05 11:10 +0100
Re: systemd+anacron breaks cron jobs Michael Biebl <biebl@debian.org> - 2018-12-05 11:10 +0100
Re: systemd+anacron breaks cron jobs Michael Biebl <biebl@debian.org> - 2018-12-05 11:20 +0100
Re: systemd+anacron breaks cron jobs kjonca@poczta.onet.pl (Kamil Jońca) - 2018-12-05 11:30 +0100
Re: systemd+anacron breaks cron jobs Michael Biebl <biebl@debian.org> - 2018-12-05 11:50 +0100
Re: systemd+anacron breaks cron jobs kjonca@poczta.onet.pl (Kamil Jońca) - 2018-12-05 12:00 +0100
Re: systemd+anacron breaks cron jobs Michael Biebl <biebl@debian.org> - 2018-12-05 12:40 +0100
Re: systemd+anacron breaks cron jobs kjonca@poczta.onet.pl (Kamil Jońca) - 2018-12-05 12:50 +0100
Re: systemd+anacron breaks cron jobs Cindy-Sue Causey <butterflybytes@gmail.com> - 2018-12-05 19:00 +0100
Re: systemd+anacron breaks cron jobs kjonca@poczta.onet.pl (Kamil Jońca) - 2018-12-05 19:20 +0100
Re: systemd+anacron breaks cron jobs Cindy-Sue Causey <butterflybytes@gmail.com> - 2018-12-05 19:40 +0100
csiph-web