1
0
mirror of https://github.com/pavel-odintsov/fastnetmon synced 2024-11-23 00:52:00 +01:00

Reworked default systemd unit file to run FastNetMon under regular non root user and switched logging to journald

This commit is contained in:
Pavel Odintsov 2024-01-10 15:25:04 +00:00
parent 907454df86
commit dfc161008a
2 changed files with 7 additions and 3 deletions

@ -5,10 +5,14 @@ After=network.target remote-fs.target
[Service]
Type=simple
ExecStart=@CMAKE_INSTALL_SBINDIR@/fastnetmon
ExecStart=@CMAKE_INSTALL_SBINDIR@/fastnetmon --log_to_console
User=fastnetmon
Group=fastnetmon
Restart=on-failure
RestartSec=3
LimitNOFILE=65535
# We need it to use AF_PACKET and AF_XDP when run under non root user
AmbientCapabilities=CAP_NET_RAW CAP_IPC_LOCK
[Install]
WantedBy=multi-user.target

@ -11,7 +11,7 @@ Group=fastnetmon
Restart=on-failure
RestartSec=3
LimitNOFILE=65535
# We need it to use AF_PACKET when run under non root user
# We need it to use AF_PACKET and AF_XDP when run under non root user
AmbientCapabilities=CAP_NET_RAW CAP_IPC_LOCK
[Install]