1 |
Hello, |
2 |
|
3 |
The following progress has been made in the past week: |
4 |
|
5 |
Initially we (robbat2 and I) discussed the design of the systemd changes |
6 |
required for the codebase to remain consistent. What we finally reached was: |
7 |
No drastic changes to the build process. We would provide an addition |
8 |
systemd unit file along with systemd wrappers |
9 |
|
10 |
Created a systemd wrapper to be called by the unit file |
11 |
- It sets up the initial environment for non-systemd settings |
12 |
- Sources the conf.d/net file manually |
13 |
- Sources the net.lo file and relays calls to start, stop and restart to |
14 |
the net.lo script |
15 |
|
16 |
Refactor common functionality in sh/functions.sh |
17 |
- Functionality like finding the interface name from the runscript which is |
18 |
required on any target but which differs depending on the target (Gentoo |
19 |
v/s non-Gentoo, openrc v/s systemd) are to be refactored in this file. For |
20 |
example it presently contains get_interface() which finds out the interface |
21 |
name depending on the init system |
22 |
|
23 |
- It also checks whether ebegin, etc. is present in the scope. If not, then |
24 |
it tries to source /lib/gentoo/functions.sh. Else as a fallback it contains |
25 |
the definitions of those functions (Adapted from sys-apps/gentoo-functions) |
26 |
|
27 |
You can see the changes at |
28 |
https://github.com/gentoo/netifrc-systemd/tree/master |
29 |
|
30 |
Regards, |
31 |
Rabi |