Drop env var settings in systemd service file
Bug #1863104 reported by
Andreas Hasenack
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
isc-kea (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
It looks like we can drop these from the systemd service files:
Environment=
Environment=
A quick check showed the daemon working just fine and with the locks in the expected places, but a more through tests should be done. In particular, investigate whether there are config file options for the same things, in which case we should definitely drop these vars from the systemd service file to avoid confusion, as they would override the config file settings.
To post a comment you must log in.
I am not sure I agree with dropping those. Rationale:
1. Those do not appear to be configurable via config files. In principle those files could be created *before* the conf file is parsed (especially true for the pidfile, not sure of when the lockfile is created). So no confusion with conf file settings.
2. With those variable set the pid and lock files go in "kea/" directories (/run/kea/ and /run/lock/kea/). I think this is nice given that Kea can have several daemons running at the same time. This is not the default (at least according to the docs).
3. The upstream packaging does set those env vars. We are not bound to follow what upstream does wrt packaging, but I think it's friendly to users not to diverge when possible.