feat: add the hat-syslog-server service

This commit is contained in:
tcely
2026-05-01 12:29:27 -04:00
parent 19f65c3738
commit 0deb95e02c
5 changed files with 16 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
#!/command/with-contenv bash
set -e
cd /app
DIR="${XDG_STATE_HOME:-/config/state}/hat"
DATABASE="${DIR}/syslog.db"
mkdir -p "${DIR}"
chown -R app:app "${DIR}"
chmod 0700 "${DIR}"
exec s6-setuidgid app \
hat-syslog-server --log-level 'DEBUG' \
--db-enable-archive --db-path "${DATABASE}"

View File

@@ -0,0 +1 @@
longrun