Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 512056 - net-dns/noip-updater-2.1.9-r1 - systemd service should start only when the machine goes online
Summary: net-dns/noip-updater-2.1.9-r1 - systemd service should start only when the ma...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2014-06-01 16:00 UTC by Martin Väth
Modified: 2014-07-08 15:44 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch for noip.service to start only when the machine went online (noip.service.patch,212 bytes, patch)
2014-06-01 16:00 UTC, Martin Väth
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Väth 2014-06-01 16:00:36 UTC
Created attachment 378020 [details, diff]
Patch for noip.service to start only when the machine went online

Since current versions of systemd finally support networking and thus obtained a corresponding network-online.target for applications requiring the network being available, the systemd unit noip.service should be updated correspondingly:

The unit should order itself after network-online.target.
It would also not hurt to depend on network-online.target, since starting the service makes no sense when offline.

(Currently, the service occassionally starts too early, meaning that the first update fails, and the second attempt only happens in the next update interval which by default is 30 minutes later - thus the machine is not accessible over noip for the first 30 minutes after booting).

I attach a corresponding patch to noip.service
Comment 1 Pacho Ramos gentoo-dev 2014-07-08 15:44:43 UTC
+  08 Jul 2014; Pacho Ramos <pacho@gentoo.org> files/noip.service:
+  Needs network-online (#512056 by Martin Vath)
+