mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-12 13:46:41 +02:00
20 lines
483 B
Bash
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
|
|
}
|