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