FS#42032 - [pkgstats] systemd service file pkgstats.service not pulling in network-online.target
Attached to Project:
Arch Linux
Opened by wombalton (wombalton) - Saturday, 20 September 2014, 08:25 GMT
Last edited by freswa (frederik) - Tuesday, 24 March 2020, 19:02 GMT
Opened by wombalton (wombalton) - Saturday, 20 September 2014, 08:25 GMT
Last edited by freswa (frederik) - Tuesday, 24 March 2020, 19:02 GMT
|
Details
Description:
Recently I discovered that a systemd unit that wants to be started After=network-online.target has to pull it in as well with Wants=network-online.target otherwise the network-online.target ist not started and the service fails due no networkconnection is availible. I have to add, that I use networkmanager wich provides a NetworkManager-wait-online.service to delay the start of network-online.target until there really is a networkconnection working. Additional info: * pkgstats 2.3-6 * systemd 216-3 * networkmanager 0.9.10.0-4 Solution: Add 'Wants=network-online.target; to the [Unit] part of the pkgstats.service file |
This task depends upon
Closed by freswa (frederik)
Tuesday, 24 March 2020, 19:02 GMT
Reason for closing: None
Additional comments about closing: This seems pretty stalled to me. If it's still an issue, please fill a re-open request. Thank you :)
Tuesday, 24 March 2020, 19:02 GMT
Reason for closing: None
Additional comments about closing: This seems pretty stalled to me. If it's still an issue, please fill a re-open request. Thank you :)
Comment by Samantha McVey (samcv) -
Thursday, 09 June 2016, 22:09 GMT
Comment by
Lorenzo Porta (Vindex17) - Monday,
12 June 2017, 07:35 GMT
Comment by
Eli Schwartz (eschwartz) - Tuesday,
01 August 2017, 22:47 GMT
networkmanager was at version 0.9.10.0-4 when this bug was
submitted. It is now at 1.2.2. Can you please let us know if this
is still an issue for you, and if you can test using the latest
versions? Thanks!
The 'network-online.target' is pulled in by systemd only if at
least one service sets it as a dependency. So it's really
necessary to have both 'Requires=network-online.target' and
'After=network-online.target' on 'pkgstats.service'
Addendum: The standard way for services to declare that they
should be run after the network is available, is to list *both*
Wants and After.