Add example systemctl .service files

Add example .service files for lqosd and lqos_node_manager.

Signed-off-by: Herbert Wolverson <herberticus@gmail.com>
This commit is contained in:
Herbert Wolverson 2023-01-04 20:22:20 +00:00
parent 495b40f840
commit 3e7da99f0f
4 changed files with 29 additions and 1 deletions

9
.gitignore vendored
View File

@ -51,7 +51,14 @@ src/liblqos_python.so
# Ignore Rust build artifacts
src/rust/target
src/bin
src/bin/static
src/bin/lqosd
src/bin/lqtop
src/bin/xdp_iphash_to_cpu_cmdline
src/bin/xdp_pping
src/bin/lqos_node_manager
src/bin/Rocket.toml
# Ignore project folders for some IDEs
.idea/

View File

@ -0,0 +1,10 @@
[Unit]
After=network.service
[Service]
WorkingDirectory=/opt/libreqos/src/bin
ExecStart=/opt/libreqos/src/bin/lqos_node_manager
Restart=always
[Install]
WantedBy=default.target

View File

@ -0,0 +1,10 @@
[Unit]
After=network.service
[Service]
WorkingDirectory=/opt/libreqos/src/bin
ExecStart=/opt/libreqos/src/bin/lqosd
Restart=always
[Install]
WantedBy=default.target

View File

@ -37,3 +37,4 @@ popd
cp rust/target/release/liblqos_python.so .
echo "Don't forget to setup /etc/lqos!"
echo "Template .service files can be found in bin/"