FS#70378 - [openethereum] /etc/conf.d/openethereum would be very helpful

Attached to Project: Community Packages
Opened by Andrej Podzimek (andrej) - Friday, 09 April 2021, 00:00 GMT
Last edited by Toolybird (Toolybird) - Saturday, 01 April 2023, 21:45 GMT
Task Type Feature Request
Category Packages
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Overriding of command-line parameters with systemd is cumbersome. It is typically done in a drop-in file (e.g. /etc/systemd/system/openethereum.service.d/mychanges.conf) and one needs to override the command line entirely, e.g.:

[Service]
ExecStart=
ExecStart=/usr/bin/openethereum --config /etc/openethereum/config.toml --some --other --args

The main problem with this^^^ approach is that upstream changes to the command line in /usr/lib/systemd/system/openethereum.service won't be propagated to the customization.

A more flexible approach is to use an environment file and reference environment variables on the command line. Here's an example from Prometheus where $PROMETHEUS_ARGS is set in /etc/conf.d/prometheus: https://github.com/archlinux/svntogit-packages/blob/packages/prometheus/trunk/prometheus.service#L11-L12
This task depends upon

Closed by  Toolybird (Toolybird)
Saturday, 01 April 2023, 21:45 GMT
Reason for closing:  Won't implement
Additional comments about closing:  Pkg dropped to the AUR
Comment by Nicola Squartini (tensor5) - Monday, 12 April 2021, 11:40 GMT
Is there a configuration that can only be specified through a command line argument? That would justify that addition of an OPENETHEREUM_ARGS environment variable.

Loading...