diff --git a/API/skantravels.service b/API/skantravels.service new file mode 100644 index 0000000..1ca9378 --- /dev/null +++ b/API/skantravels.service @@ -0,0 +1,16 @@ +[Unit] +Description=Skantravels .NET +After=network.target + +[Service] +Environment=DOTNET_ROOT=/home/reimar/.dotnet +Environment=PATH=$PATH:/home/reimar/.dotnet +Environment=DEFAULT_CONNECTION="Data Source=/home/reimar/skantravels/database.sqlite3" +ExecStartPre=/home/reimar/skantravels/efbundle +ExecStart=/home/reimar/skantravels/API --urls=http://0.0.0.0:5001 +Type=simple + +[Install] +WantedBy=multi-user.target +RequiredBy=network.target + diff --git a/rust-backend/skantravels-rust.service b/rust-backend/skantravels-rust.service new file mode 100644 index 0000000..29dc22f --- /dev/null +++ b/rust-backend/skantravels-rust.service @@ -0,0 +1,14 @@ +[Unit] +Description=Skantravels Rust +After=network.target + +[Service] +Environment=RUST_BACKEND_PORT=5002 +Environment=RUST_BACKEND_DB=/home/reimar/skantravels/database-rust.sqlite3 +ExecStart=/home/reimar/skantravels/skantravels +Type=simple + +[Install] +WantedBy=multi-user.target +RequiredBy=network.target +