Files
Wegwichtel/systemd/wegwichtel.service
T
Florian Zumpe 9e2b1d9746
Sonarqube Scanner / Build and analyze (push) Failing after 23s
Add userspace systemd unit
2026-09-26 20:40:42 +02:00

26 lines
424 B
Desktop File

[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