diff options
| author | Eugen Wissner <belka@caraus.de> | 2026-11-16 04:59:50 +0100 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2026-11-16 04:59:50 +0100 |
| commit | 7af33bd4079b1ccea362d6e32729d7ba3ea0df99 (patch) | |
| tree | 9641dee6ecb3c3d8dc5dada18794b390ce271214 /rc.zot/zot-log/run | |
| parent | 1ea2bc9b308b8c05ab09ef463f638f993e747f39 (diff) | |
| download | s6-7af33bd4079b1ccea362d6e32729d7ba3ea0df99.tar.gz | |
Add rc.zot registry service
Diffstat (limited to 'rc.zot/zot-log/run')
| -rw-r--r-- | rc.zot/zot-log/run | 24 |
1 files changed, 24 insertions, 0 deletions
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 |
