Merge pull request #805 from moonstream-to/struct-moonstreamdb

Updated moonstreamdb placement
pull/812/head
Sergei Sumarokov 2023-06-06 08:30:40 -07:00 zatwierdzone przez GitHub
commit 3d7897b0b1
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
55 zmienionych plików z 15 dodań i 15 usunięć

Wyświetl plik

@ -1,14 +0,0 @@
[Unit]
Description=moonstreamdb-service
After=network.target
[Service]
User=ubuntu
Group=www-data
WorkingDirectory=/home/ubuntu/moonstream/db/server
EnvironmentFile=/home/ubuntu/moonstream-secrets/app.env
ExecStart=/home/ubuntu/moonstream/db/server/moonstreamdb -host 127.0.0.1 -port "${MOONSTREAM_DB_SERVER_PORT}"
SyslogIdentifier=moonstreamdb
[Install]
WantedBy=multi-user.target

Wyświetl plik

@ -4,7 +4,7 @@
# Main
APP_DIR="${APP_DIR:-/home/ubuntu/moonstream}"
APP_DB_SERVER_DIR="${APP_DIR}/db/server"
APP_DB_SERVER_DIR="${APP_DIR}/moonstreamdb/server"
SECRETS_DIR="${SECRETS_DIR:-/home/ubuntu/moonstream-secrets}"
SCRIPT_DIR="$(realpath $(dirname $0))"
SERVICE_FILE="${SCRIPT_DIR}/moonstreamdb.service"

Wyświetl plik

@ -0,0 +1,14 @@
[Unit]
Description=Moonstream DB status service
After=network.target
[Service]
User=ubuntu
Group=www-data
WorkingDirectory=/home/ubuntu/moonstream/moonstreamdb/server
EnvironmentFile=/home/ubuntu/moonstream-secrets/app.env
ExecStart=/home/ubuntu/moonstream/moonstreamdb/server/moonstreamdb -host 127.0.0.1 -port "${MOONSTREAM_DB_SERVER_PORT}"
SyslogIdentifier=moonstreamdb
[Install]
WantedBy=multi-user.target