From 7af33bd4079b1ccea362d6e32729d7ba3ea0df99 Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Mon, 16 Nov 2026 04:59:50 +0100 Subject: Add rc.zot registry service --- rc.zot/zot-log/run | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 rc.zot/zot-log/run (limited to 'rc.zot/zot-log/run') diff --git a/rc.zot/zot-log/run b/rc.zot/zot-log/run new file mode 100644 index 0000000..25d71ae --- /dev/null +++ b/rc.zot/zot-log/run @@ -0,0 +1,24 @@ +#!/bin/execlineb -P + +############################################### +# Start a logging daemon for the zot registry # +############################################### + +s6-envdir env +multisubstitute { + importas -iu LOGDIR_OWNER LOGDIR_OWNER + importas -iu LOGDIR_GROUP LOGDIR_GROUP + importas -iu LOGDIR_PERMS LOGDIR_PERMS + importas -iu CMD CMD + importas -usCd" " CMD_OPTS CMD_OPTS + importas -iusCd" " LOG_SCRIPT LOG_SCRIPT +} +s6-envuidgid -Bi ${LOGDIR_OWNER}:${LOGDIR_GROUP} +multisubstitute { + importas -iu LOGDIR_PATH LOGDIR_PATH + importas -iu UID UID + importas -iu GID GID +} +if { install -dm $LOGDIR_PERMS -o $UID -g $GID $LOGDIR_PATH } +s6-setuidgid ${UID}:${GID} +exec -c $CMD $CMD_OPTS -- $LOG_SCRIPT -- cgit v1.2.3