Skip to content

Commit c4c9bf4

Browse files
authored
create systemd unit example (#59)
1 parent c6e207d commit c4c9bf4

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# default settings for netobserv-ebpf-agent
2+
# used by systemd unit
3+
# /etc/default/netobserv-ebpf-agent
4+
5+
DIRECTION=both
6+
FLOWS_TARGET_HOST=127.0.0.1
7+
FLOWS_TARGET_PORT=9999
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[Unit]
2+
Description=Netobserv eBPF Agent
3+
After=network.target
4+
5+
[Service]
6+
EnvironmentFile=-/etc/default/netobserv-ebpf-agent
7+
ExecStart=/opt/netobserv-ebpf-agent/bin/netobserv-ebpf-agent
8+
Restart=on-failure
9+
Type=exec
10+
11+
[Install]
12+
WantedBy=multi-user.target

0 commit comments

Comments
 (0)