feat: add the hat-syslog-server service
This commit is contained in:
15
config/root/etc/s6-overlay/s6-rc.d/hat-syslog-server/run
Executable file
15
config/root/etc/s6-overlay/s6-rc.d/hat-syslog-server/run
Executable 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}"
|
||||
@@ -0,0 +1 @@
|
||||
longrun
|
||||
Reference in New Issue
Block a user