diff options
| author | Eugen Wissner <belka@caraus.de> | 2025-05-26 21:17:15 +0200 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2025-05-26 21:17:15 +0200 |
| commit | 22994bb8694b8aa8b1094f1e7f24f499816fa1a4 (patch) | |
| tree | fd3480dbfab0b899dffa3d6a8b37024cad961ecc /rc.postgresql/postgresql-log/run | |
| parent | 1e8f8cd3dd65236cb48cbcd69b18245bf8eb6977 (diff) | |
| download | s6-22994bb8694b8aa8b1094f1e7f24f499816fa1a4.tar.gz | |
Add postgresql
Diffstat (limited to 'rc.postgresql/postgresql-log/run')
| -rw-r--r-- | rc.postgresql/postgresql-log/run | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/rc.postgresql/postgresql-log/run b/rc.postgresql/postgresql-log/run new file mode 100644 index 0000000..7628e26 --- /dev/null +++ b/rc.postgresql/postgresql-log/run @@ -0,0 +1,24 @@ +#!/bin/execlineb -P + +#################################################### +# Start a logging daemon for the postgresql daemon # +#################################################### + +s6-envdir env +multisubstitute { + importas -u LOGDIR_OWNER LOGDIR_OWNER + importas -u LOGDIR_GROUP LOGDIR_GROUP + importas -u LOGDIR_PERMS LOGDIR_PERMS + importas -u CMD CMD + importas -usCd" " CMD_OPTS CMD_OPTS + importas -usCd" " LOG_SCRIPT LOG_SCRIPT +} +s6-envuidgid -B ${LOGDIR_OWNER}:${LOGDIR_GROUP} +multisubstitute { + importas -u LOGDIR_PATH LOGDIR_PATH + importas -u UID UID + importas -u GID GID +} +if { install -dm $LOGDIR_PERMS -o $UID -g $GID $LOGDIR_PATH } +s6-setuidgid ${UID}:${GID} +exec -c $CMD $CMD_OPTS -- $LOG_SCRIPT |
