From a32d3938367e75502efbb34aa85c6f56bfa80062 Mon Sep 17 00:00:00 2001 From: Philipp Hofer Date: Sat, 19 Apr 2025 11:23:27 +0200 Subject: [PATCH] add test systemd service file --- startest.service | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 startest.service diff --git a/startest.service b/startest.service new file mode 100644 index 0000000..f47a43c --- /dev/null +++ b/startest.service @@ -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