This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user