pfannkuchen/stream-control/systemd/network-policy-cache.service

21 lines
548 B
Desktop File

[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