Skip to content

Commit e36a105

Browse files
authored
Merge pull request #12 from noahwilliamsson/add-build-instructions
README: add build and install instructions
2 parents 8362fcc + febae50 commit e36a105

File tree

1 file changed

+27
-10
lines changed

1 file changed

+27
-10
lines changed

README.md

Lines changed: 27 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,29 @@ sending as soon as network is down (uses sd-network).
99

1010
-------------
1111

12+
13+
Installing from source
14+
----------------------
15+
16+
Install build dependencies:
17+
18+
# On Debian/Ubuntu
19+
sudo apt install build-essential gperf libcap-dev libsystemd-dev pkg-config meson python3-sphinx
20+
# On CentOS/RHEL/Fedora
21+
sudo dnf group install 'Development Tools'
22+
sudo dnf install gperf libcap-devel pkg-config systemd-devel meson python3-sphinx
23+
24+
Build and install:
25+
26+
make
27+
sudo make install
28+
sudo useradd -r -d / -s /usr/sbin/nologin -g systemd-journal systemd-journal-netlog
29+
30+
1231
Configuration
1332
-------------
1433

15-
Create a user **systemd-journal-netlog**
16-
> - useradd -G systemd-journal systemd-journal-netlog
17-
34+
systemd-networkd reads configuration files named `/etc/systemd/systemd-netlogd.conf` and `/etc/systemd/systemd-netlogd.conf.d/*.conf`.
1835

1936
**[NETWORK]** SECTION OPTIONS
2037

@@ -37,16 +54,16 @@ Create a user **systemd-journal-netlog**
3754

3855
Example 1. /etc/systemd/systemd-netlogd.conf
3956

40-
[Network]
41-
Address=239.0.0.1:6000
57+
[Network]
58+
Address=239.0.0.1:6000
4259

4360
Example 2. /etc/systemd/systemd-netlogd.conf
4461

45-
[Network]
46-
Address=192.168.8.101:514
62+
[Network]
63+
Address=192.168.8.101:514
4764

4865
Example 3. /etc/systemd/systemd-netlogd.conf
4966

50-
[Network]
51-
Address=192.168.8.101:514
52-
StructuredData=[1ab456b6-90bb-6578-abcd-5b734584aaaa@41058]
67+
[Network]
68+
Address=192.168.8.101:514
69+
StructuredData=[1ab456b6-90bb-6578-abcd-5b734584aaaa@41058]

0 commit comments

Comments
 (0)