Add systemd services used in prod

This commit is contained in:
Reimar 2024-08-15 14:50:00 +02:00
parent 7603f00bd5
commit f82ba23c5d
Signed by: Reimar
GPG Key ID: 93549FA07F0AE268
2 changed files with 30 additions and 0 deletions

16
API/skantravels.service Normal file
View File

@ -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

View File

@ -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