add systemd service example

This commit is contained in:
Robin Appelman 2025-11-01 17:26:53 +01:00
commit 53f5f45865
2 changed files with 17 additions and 0 deletions

14
netnsd.service Normal file
View file

@ -0,0 +1,14 @@
[Unit]
Before=network.target
[Service]
# Set the log level
Environment="RUST_LOG=info"
ExecStart=/usr/bin/netnsd daemon
Restart=on-failure
# Tell systemd to send SIGUP when reloading the service instead of restarting the process.
# This lets the user reload the config without interrupting any open forwarded connections.
Type=notify-reload
[Install]
WantedBy=multi-user.target