1
0
Fork 0
mirror of https://github.com/pavel-odintsov/fastnetmon synced 2024-05-03 22:26:30 +02: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

View File

@ -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

View File

@ -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]