[Unit] Description=Thor monitor loop (out-of-band host and cluster health) After=network-online.target Wants=network-online.target [Service] Type=simple User=thor Group=thor WorkingDirectory=/opt/thor/app EnvironmentFile=-/opt/thor/revision.env ExecStart=/opt/thor/venv/bin/python -m thor.monitor Restart=always RestartSec=10 NoNewPrivileges=true ProtectSystem=strict ProtectHome=true PrivateTmp=true PrivateDevices=true ProtectKernelTunables=true ProtectControlGroups=true RestrictSUIDSGID=true LockPersonality=true [Install] WantedBy=multi-user.target