diff options
Diffstat (limited to 'rc.zot/zot-srv')
| -rw-r--r-- | rc.zot/zot-srv/dependencies | 5 | ||||
| -rw-r--r-- | rc.zot/zot-srv/env/CMD | 1 | ||||
| -rw-r--r-- | rc.zot/zot-srv/env/CMD_OPTS | 1 | ||||
| -rw-r--r-- | rc.zot/zot-srv/producer-for | 1 | ||||
| -rw-r--r-- | rc.zot/zot-srv/run | 14 | ||||
| -rw-r--r-- | rc.zot/zot-srv/type | 1 |
6 files changed, 23 insertions, 0 deletions
diff --git a/rc.zot/zot-srv/dependencies b/rc.zot/zot-srv/dependencies new file mode 100644 index 0000000..a262a61 --- /dev/null +++ b/rc.zot/zot-srv/dependencies @@ -0,0 +1,5 @@ +tmpfs-run +# Comment out "remount-root" and uncomment "local-fs" +# if you use separate partition for /var +remount-root +#local-fs diff --git a/rc.zot/zot-srv/env/CMD b/rc.zot/zot-srv/env/CMD new file mode 100644 index 0000000..2652f8a --- /dev/null +++ b/rc.zot/zot-srv/env/CMD @@ -0,0 +1 @@ +/usr/bin/zot diff --git a/rc.zot/zot-srv/env/CMD_OPTS b/rc.zot/zot-srv/env/CMD_OPTS new file mode 100644 index 0000000..30ec6d0 --- /dev/null +++ b/rc.zot/zot-srv/env/CMD_OPTS @@ -0,0 +1 @@ +serve /etc/zot/config.yaml diff --git a/rc.zot/zot-srv/producer-for b/rc.zot/zot-srv/producer-for new file mode 100644 index 0000000..3a1c37e --- /dev/null +++ b/rc.zot/zot-srv/producer-for @@ -0,0 +1 @@ +zot-log diff --git a/rc.zot/zot-srv/run b/rc.zot/zot-srv/run new file mode 100644 index 0000000..44c40c7 --- /dev/null +++ b/rc.zot/zot-srv/run @@ -0,0 +1,14 @@ +#!/bin/execlineb -P + +###################### +# Start zot registry # +###################### + +fdmove -c 2 1 +s6-setuidgid zot +s6-envdir env +multisubstitute { + importas -iu CMD CMD + importas -usCd" " CMD_OPTS CMD_OPTS +} +exec -c $CMD $CMD_OPTS diff --git a/rc.zot/zot-srv/type b/rc.zot/zot-srv/type new file mode 100644 index 0000000..5883cff --- /dev/null +++ b/rc.zot/zot-srv/type @@ -0,0 +1 @@ +longrun |
