Updated moonstreamdb placement

pull/805/head
kompotkot 2023-06-06 11:49:42 +00:00
rodzic 43a8e09d35
commit a7cbaae00e
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