feat: add the busybox-syslogd service

This commit is contained in:
tcely
2026-05-13 18:52:14 -04:00
parent 0deb95e02c
commit f53a70baca
5 changed files with 26 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
#!/command/with-contenv bash
install_pkg() {
apt-get update && apt-get install -y busybox busybox-syslogd
}
set -e
cd /
install -d -o root -g app -m 0750 /run/app/log
command -v busybox >/dev/null || install_pkg
HOST=127.0.0.1
PORT=6514
export HOST PORT
config='/run/app/log/.syslog.conf'
logfile='/run/app/log/messages'
: >| "${config}"
exec busybox syslogd -n -S -l 8 -f "${config}" \
-b 9 -s 2048 -O "${logfile}" \
-L -R "${HOST}:${PORT}"

View File

@@ -0,0 +1 @@
longrun