gotosocial-bin: Set config path and command arguments

Signed-off-by: Stefan Knoblich <stkn@bitplumber.de>
This commit is contained in:
2022-11-11 16:28:16 +01:00
parent c7c2d94516
commit a41ad38e7c
3 changed files with 6 additions and 6 deletions

View File

@@ -4,16 +4,16 @@
GOTOSOCIAL_USER="${GOTOSOCIAL_USER:-gotosocial}"
GOTOSOCIAL_GROUP="${GOTOSOCIAL_GROUP:-gotosocial}"
GOTOSOCIAL_CONFIG="${GOTOSOCIAL_CONFIG:-/etc/gotosocial/config.yml}"
GOTOSOCIAL_CONFIG="${GOTOSOCIAL_CONFIG:-/etc/gotosocial/config.yaml}"
GOTOSOCIAL_DATA_DIR="${GOTOSOCIAL_DATA_DIR:-/var/lib/gotosocial}"
GOTOSOCIAL_LOG_DIR="${GOTOSOCIAL_LOG_DIR:-/var/log/gotosocial}"
command="/usr/bin/gotosocial"
command_args="--config ${GOTOSOCIAL_CONFIG}"
command_args="--config-path ${GOTOSOCIAL_CONFIG} server start"
pidfile="/run/${RC_SVCNAME}.pid"
command_background="true"
start_stop_daemon_args="--user=\"${GOTOSOCIAL_USER}\" --group=\"${GOTOSOCIAL_GROUP}\" --stdout ${GOTOSOCIAL_LOG_DIR}/gotosocial.log --stderr ${GOTOSOCIAL_LOG_DIR}/gotosocial.err server start"
start_stop_daemon_args="--user=\"${GOTOSOCIAL_USER}\" --group=\"${GOTOSOCIAL_GROUP}\" --stdout ${GOTOSOCIAL_LOG_DIR}/gotosocial.log --stderr ${GOTOSOCIAL_LOG_DIR}/gotosocial.err --chdir ${GOTOSOCIAL_DATA_DIR}"
start_pre() {
checkpath -d -o "${GOTOSOCIAL_USER}" -m750 "${GOTOSOCIAL_DATA_DIR}"

View File

@@ -12,7 +12,7 @@ CacheDirectoryMode=0750
User=gotosocial
Group=gotosocial
ExecStart=/usr/bin/gotosocial --config /etc/gotosocial/config.yml server start
ExecStart=/usr/bin/gotosocial --config /etc/gotosocial/config.yaml server start
[Install]
WantedBy=multi-user.target