﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
11249	usbutils: systemd service should depend on network-online.target	Xi Ruoyao	blfs-book	"`systemctl status update-usbids.service` reported:

{{{
● update-usbids.service - Update usb.ids file
   Loaded: loaded (/lib/systemd/system/update-usbids.service; static; vendor preset: enabled)
   Active: failed (Result: exit-code) since Sun 2018-10-14 18:03:20 CST; 2h 33min ago
     Docs: man:lusub(8)
 Main PID: 211 (code=exited, status=4)

10月 14 18:03:19 xry111-work systemd[1]: Starting Update usb.ids file...
10月 14 18:03:19 xry111-work wget[211]: --2018-10-14 18:03:19--  http://www.linux-usb.org/usb.ids
10月 14 18:03:20 xry111-work wget[211]: Resolving www.linux-usb.org... failed: Temporary failure in name resolution.
10月 14 18:03:20 xry111-work wget[211]: wget: unable to resolve host address 'www.linux-usb.org'
10月 14 18:03:20 xry111-work systemd[1]: update-usbids.service: Main process exited, code=exited, status=4/NOPERMISSION
10月 14 18:03:20 xry111-work systemd[1]: update-usbids.service: Failed with result 'exit-code'.
10月 14 18:03:20 xry111-work systemd[1]: Failed to start Update usb.ids file.
}}}

This is because `wget` was executed before the setting up of Internet connection.  We should change

{{{
After=local-fs.target
}}}

to

{{{
After=local-fs.target network-online.target
}}}

(Just like [https://github.com/djlucas/make-ca/commit/f311a2b9cb91e3f39c974504b3bb5734d17df005 DJ's commit to make-ca].)"	defect	closed	normal	8.4	BOOK	systemd	medium	fixed		
