add test systemd service file

This commit is contained in:
Philipp Hofer 2025-04-19 11:23:27 +02:00
parent 2a5618c0e5
commit a32d393836

17
startest.service Normal file
View File

@ -0,0 +1,17 @@
[Unit]
Description=Stationslauf
[Service]
User=root
Group=root
WorkingDirectory=/home/startest
Environment="PORT=7002"
Environment="RUST_LOG=info"
Environment="TEST_VERSION=1"
Environment="DATABASE_URL=sqlite:///home/startest/db.sqlite"
ExecStart=/home/startest/star-test
Restart=always
RestartSec=10
[Install]
WantedBy=multi-user.target