FS#59773 - [haveged] Can we install this service to basic.target or as early as possible?
Attached to Project:
Arch Linux
Opened by Eric Wang (enihcam) - Thursday, 23 August 2018, 10:28 GMT
Last edited by Christian Hesse (eworm) - Thursday, 23 August 2018, 21:10 GMT
Opened by Eric Wang (enihcam) - Thursday, 23 August 2018, 10:28 GMT
Last edited by Christian Hesse (eworm) - Thursday, 23 August 2018, 21:10 GMT
|
Details
Description:
Can we install this service to basic.target or as early as possible? Few networking services are depending on it. Additional info: * package version(s) * config and/or log files etc. Steps to reproduce: |
This task depends upon
Closed by Christian Hesse (eworm)
Thursday, 23 August 2018, 21:10 GMT
Reason for closing: Fixed
Additional comments about closing: haveged 1.9.4-3
Thursday, 23 August 2018, 21:10 GMT
Reason for closing: Fixed
Additional comments about closing: haveged 1.9.4-3
Do you have any cases where you see issue with the current version?
I will test with WantedBy=sysinit.target and push changes when everything works as expected.
Aug 23 18:19:02 localhost ss-server[244]: 2018-08-23 18:19:02 INFO: plugin "obfs-server" enabled
Aug 23 18:19:02 localhost ss-server[244]: 2018-08-23 18:19:02 INFO: UDP relay enabled
Aug 23 18:19:02 localhost ss-server[244]: 2018-08-23 18:19:02 INFO: enable TCP no-delay
Aug 23 18:19:02 localhost ss-server[244]: 2018-08-23 18:19:02 INFO: initializing ciphers... chacha20-ietf-poly1305
Aug 23 18:19:02 localhost ss-server[244]: 2018-08-23 18:19:02 INFO: This system doesn't provide enough entropy to quickly generate high-quality random numbers.
Aug 23 18:19:02 localhost ss-server[244]: Installing the rng-utils/rng-tools, jitterentropy or haveged packages may help.
Aug 23 18:19:02 localhost ss-server[244]: On virtualized Linux environments, also consider using virtio-rng.
Aug 23 18:19:02 localhost ss-server[244]: The service will not start until enough entropy has been collected.
Here is the .service file:
https://git.archlinux.org/svntogit/community.git/tree/trunk/shadowsocks-libev-server@.service?h=packages/shadowsocks-libev
(Note that this file already uses WantedBy=sysinit.target )
I guess I was mistaken in believing that Arch Linux was a KISS distro priding itself on "ships software as released by the original developers".
Well, that would certainly explain why upstreams so often don't bother to provide such things themselves.
RIP.
Things evolved in parallel, and I did some work for our unit file lately.
I plan to submit it upstream, but want to finalize it before. I know our distribution principles pretty well and I am perfectly sure nobody (and upstream the least) is happy with "please commit upstream, it is work-in-progress, next change soon".
IMHO the correct way to handle this is *not* to continually track upstream *and* your own improvements at the same time. It is to use upstream's file + the builtin method of enhancing a systemd unit to *add* onto upstream's file.
That would result in not having to e.g. duplicate the upstream functionality of using sysinit.target due to hard-masking their file with yours.