From d052cf3eff2e3d296a3d75f577a42677da859f57 Mon Sep 17 00:00:00 2001 From: sascha Date: Mon, 7 Sep 2026 09:03:59 +0200 Subject: [PATCH] feat(control): add stream-control/systemd/network-policy-cache.service --- .../systemd/network-policy-cache.service | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 stream-control/systemd/network-policy-cache.service diff --git a/stream-control/systemd/network-policy-cache.service b/stream-control/systemd/network-policy-cache.service new file mode 100644 index 0000000..a1a95be --- /dev/null +++ b/stream-control/systemd/network-policy-cache.service @@ -0,0 +1,21 @@ +[Unit] +Description=Network Profile Cache +After=network-online.target +Wants=network-online.target + +[Service] +Type=simple +User=root +WorkingDirectory=/app-config/netprofile-cache +EnvironmentFile=/app-config/netprofile-cache/runtime.env +ExecStart=/usr/bin/python3 -m gunicorn --bind 127.0.0.1:9092 --workers 1 --threads 4 --timeout 45 --access-logfile - app:app +Restart=always +RestartSec=5 +NoNewPrivileges=true +PrivateTmp=true +ProtectHome=read-only +ProtectSystem=strict +ReadWritePaths=/app-config/netprofile-cache + +[Install] +WantedBy=multi-user.target