Hello Jakobus,

On Thu, 2017-09-07 at 21:06 +0200, Jakobus Schürz wrote:
> > 
> > I am currently testing with the changes you've mentioned (And would
> > like to move to a socket based setup).
> 
> For sure :-)
> 
> Here are all my units for leafnode:
> 

Thank you very much. With your setup in place, I have been able to
successfully run leafnode with systemd integration. I tested it for
around a week now and everything is working perfect.

If I could add a wishlist, it is dependency of the fetchnews service
unit/timer to runtime depend on network-online.target.

As I understand it now, fetchnews will be triggered only if the
network-online.target is active. So it does solve the service startup
at boot time, ensuring that fetchnews does not get triggered until and
unless a working operational network setup is in place.

But like yours', my leafnode setup is on my laptop. Which goes through
multiple suspend/resume and network cycles. There are also times, when
upon resume there is no network (networkless location, airplane mode
etc). Under such scenarios, systemd should only invoke such timers if
an active network connection is available.

Do you happen to know if we could configure the units/timers in such a
way that it probes the network-online.target for actual network
connectivity, and only then invoke the timers ?

This would help not just fetchnews timer but also many user defined
timers, that are dependent on network availability.

> 
> This setup works on my Laptop. I use an own leafnode, becaue i need
> groups from more than one news-server, but i only want only one
> news-server in my thunderbird.
> 
> With sudo in the cron-job, i get the described problems. runuser
> works
> for me (no xdg-user-dirs, no pam-systemd-session...)

I think this (systemd) integration work is good enough to be included
for Debian. Hopefully, Moritz will agree with these changes and
integrate it.


-- 
Ritesh Raj Sarraf | http://people.debian.org/~rrs
Debian - The Universal Operating System

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to