kopia lustrzana https://github.com/bugout-dev/moonstream
Updated moonstreamdb placement
rodzic
43a8e09d35
commit
a7cbaae00e
|
@ -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
|
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
# Main
|
# Main
|
||||||
APP_DIR="${APP_DIR:-/home/ubuntu/moonstream}"
|
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}"
|
SECRETS_DIR="${SECRETS_DIR:-/home/ubuntu/moonstream-secrets}"
|
||||||
SCRIPT_DIR="$(realpath $(dirname $0))"
|
SCRIPT_DIR="$(realpath $(dirname $0))"
|
||||||
SERVICE_FILE="${SCRIPT_DIR}/moonstreamdb.service"
|
SERVICE_FILE="${SCRIPT_DIR}/moonstreamdb.service"
|
|
@ -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
|
Ładowanie…
Reference in New Issue