gentoo/dev-util/drone/files/drone-server.initd
William Hubbs f5b240ddba
dev-util/drone: add 2.18.0
Closes: https://bugs.gentoo.org/665748
Closes: https://bugs.gentoo.org/842030
Closes: https://github.com/gentoo/gentoo/pull/29817
Signed-off-by: William Hubbs <williamh@gentoo.org>
2023-08-09 12:45:37 -05:00

26 lines
715 B
Plaintext

#!/sbin/openrc-run
# Copyright 2016-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
description="Drone CI"
pidfile=${pidfile:-"/run/${RC_SVCNAME}/${RC_SVCNAME}.pid"}
user=${user:-drone}
group=${group:-drone}
command="/usr/bin/drone-server"
command_background="true"
command_args="-env-file /etc/${RC_SVCNAME}.conf"
start_stop_daemon_args="
--user ${user}
--group ${group}
--stderr /var/log/${RC_SVCNAME}/${RC_SVCNAME}.log
--stdout /var/log/${RC_SVCNAME}/${RC_SVCNAME}.log
"
start_pre() {
[ -e /etc/${RC_SVCNAME}.conf ] && return
eerror "You need to create /etc/${RC_SVCNAME}.conf"
eerror "See http://docs.drone.io/server/reference/ for information."
return 1
}