aboutsummaryrefslogtreecommitdiff
path: root/rc.zot/zot-srv/run
diff options
context:
space:
mode:
Diffstat (limited to 'rc.zot/zot-srv/run')
-rw-r--r--rc.zot/zot-srv/run14
1 files changed, 14 insertions, 0 deletions
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