mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-12 16:06:42 +02:00
22 lines
378 B
Bash
22 lines
378 B
Bash
#!/sbin/openrc-run
|
|
|
|
: ${command_user:="zot:zot"}
|
|
: ${cfgfile:="/etc/zot/config.json"}
|
|
|
|
name=zot
|
|
description="OCI-native container image registry"
|
|
command="/usr/bin/zot"
|
|
command_args="serve $cfgfile"
|
|
command_background="yes"
|
|
pidfile="/run/$RC_SVCNAME.pid"
|
|
|
|
required_files="$cfgfile"
|
|
|
|
depend() {
|
|
need net localmount
|
|
after firewall
|
|
}
|
|
|
|
start_pre() {
|
|
$command verify "$cfgfile"
|
|
}
|