Add userspace systemd unit
Sonarqube Scanner / Build and analyze (push) Failing after 23s

This commit is contained in:
Florian Zumpe
2026-09-26 20:40:42 +02:00
parent 96b379d8d6
commit 9e2b1d9746
+25
View File
@@ -0,0 +1,25 @@
[Unit]
Description=Wegwichtel
After=network.target
[Service]
Type=simple
WorkingDirectory=%h/Wegwichtel
EnvironmentFile=%h/Wegwichtel/.env
ExecStartPre=/usr/bin/npm ci
ExecStartPre=/usr/bin/npm run test:runtime-db
ExecStart=/usr/bin/env node %h/Wegwichtel/server.js
Restart=on-failure
RestartSec=5
NoNewPrivileges=true
PrivateTmp=true
ProtectSystem=full
ReadWritePaths=%h/Wegwichtel
[Install]
WantedBy=default.target