aports/testing/docker-auth/docker-auth.initd
Conrad Hoffmann 0901741476 testing/docker-auth: new aport
https://github.com/cesanta/docker_auth
Authentication server for Docker Registry 2
2023-04-05 21:52:28 +02:00

20 lines
483 B
Bash

#!/sbin/openrc-run
name="Docker registry authentication server"
command="/usr/bin/docker-auth"
# Without `-logtostderr=true` the daemon litters /tmp with logfiles
command_args="-logtostderr=true $cfgfile"
command_background="yes"
logfile="/var/log/${RC_SVCNAME}.log"
error_log="$logfile"
output_log="$logfile"
pidfile="/run/${RC_SVCNAME}.pid"
required_files="$cfgfile"
start_pre() {
if [ "$logfile" ]; then
checkpath -f -m 0644 -o "$command_user" "$logfile" || return 1
fi
}