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