FS#51510 - [pkgstats] do not enable pkgstats.timer during install
Attached to Project:
Arch Linux
Opened by ua4000 (ua4000) - Sunday, 23 October 2016, 15:59 GMT
Last edited by Buggy McBugFace (bugbot) - Saturday, 25 November 2023, 20:24 GMT
Opened by ua4000 (ua4000) - Sunday, 23 October 2016, 15:59 GMT
Last edited by Buggy McBugFace (bugbot) - Saturday, 25 November 2023, 20:24 GMT
|
Details
Please remove pkgstats.timer enabling from install - it's no
arch way to automatically enable or start software during
install.
Instead the wiki should be updated: enable pkgstats.timer after install. Thanks very much |
This task depends upon
Closed by Buggy McBugFace (bugbot)
Saturday, 25 November 2023, 20:24 GMT
Reason for closing: Moved
Additional comments about closing: https://gitlab.archlinux.org/archlinux/p ackaging/packages/pkgstats/issues/1
Saturday, 25 November 2023, 20:24 GMT
Reason for closing: Moved
Additional comments about closing: https://gitlab.archlinux.org/archlinux/p ackaging/packages/pkgstats/issues/1
My 2 cents is that you want the package to do enable the timer for pkgstats simply because without it, the package is useless. Compare that to something optional like sshd or httpd where the user can select when to run the daemon.
Arch wiki states in the principles section: "It does not add automation features such as enabling a service simply because the package was installed." https://wiki.archlinux.org/index.php/Arch_Linux
Finding other packages which have the same issue is not a good example to justify another one :-(
But your suggestion would be interesting to find the wrong ones...
Nevertheless:
If this patch will be applied - we need to put an announce to https://www.archlinux.org/feeds/news/ - to inform users to enable the timer. Also this mention could be some sort of promotion to use the package...
Best regards
ua4000
Command to ID them: find /var/abs -type f -name 'PKGBUILD' -print0 | xargs -0 grep 'ln -s' | grep '/usr/lib/systemd'
[core]/logrotate
[core]/lvm2
[core]/man-db
[core]/mlocate
[core]/shadow
[extra]/hylafax
[extra]/mariadb
[extra]/pkgstats
[community]/startdde
[community]/hidepid
I read the arch principle, I agree with them.
Then I found pkgstats, found it very useful, but was wondering why it was enabled by default. Since the user can do this too with 3 words, it's a very "simple" package - only few dependencies, no configuration.
I understand, that there are other tasks, where service/timer activation is indeed very helpful, e.g. during core/base installation.
I don't want to insist on my bug report, but maybe the the topic wants to be discussed in general: "Which arch tasks/packages are allowed to enable units during install" - I would like to have a basic rule for arch :-)
Thanks for all comments,
best regards,
ua4000
The timer is merely convenience if a user wants to let pkgstats run on a schedule rather than using the tool directly as and when they choose. The timer certainly is not the majority of this package's function.
As cynically cast aside as "The Arch Way" is these days, and as anti-user this concept of implicit enablement of services is, it could at least use systemd's presets instead of hardcoding these values so that there is no reasonable way for a user to work around or disable this behaviour.
I fail to see how this is "not a bug".
I think the package is fine as-is. Its behavior is not hostile.
It should be up to the individual user to enable or disable the respective systemd units.
The package is not useless without the timer, if you e.g. just use it to query package statistics.
Some users might also want to be in control, when to send package statistics, i.e. call pkgstats submit manually.
tl;dr: I would also appreciate the requested change.
"(1/2) Reloading system manager configuration..."
that could mean a lot of things. I'd personally be fine with a more verbose output informing me about the activated timer (and services in case of other packages doing this).