mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-04 01:37:34 -08:00
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>
26 lines
715 B
Plaintext
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
|
|
}
|