projects/aports·blob master · refs

20 lines · 483 B

1#!/sbin/openrc-run
2
3name="Docker registry authentication server"
4
5command="/usr/bin/docker-auth"
6# Without `-logtostderr=true` the daemon litters /tmp with logfiles
7command_args="-logtostderr=true $cfgfile"
8command_background="yes"
9logfile="/var/log/${RC_SVCNAME}.log"
10error_log="$logfile"
11output_log="$logfile"
12pidfile="/run/${RC_SVCNAME}.pid"
13
14required_files="$cfgfile"
15
16start_pre() {
17 if [ "$logfile" ]; then
18 checkpath -f -m 0644 -o "$command_user" "$logfile" || return 1
19 fi
20}