#!/sbin/openrc-run
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

command="/usr/bin/aptly"
command_background="yes"
name="aptly"
description="aptly"
command_user="${APTLY_USER:-aptly}:${APTLY_GROUP:-aptly}"
command_args="api serve ${OPTS}"
pidfile="/run/${RC_SVCNAME}.pid"

depend() {
	need net
}
