diff options
Diffstat (limited to 'dev-util/drone/files/drone.initd')
-rw-r--r-- | dev-util/drone/files/drone.initd | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/dev-util/drone/files/drone.initd b/dev-util/drone/files/drone.initd new file mode 100644 index 000000000000..a7219c7d7612 --- /dev/null +++ b/dev-util/drone/files/drone.initd @@ -0,0 +1,14 @@ +#!/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/${SVCNAME}/${SVCNAME}.pid"} +user=${user:-${SVCNAME}} +group=${group:-${SVCNAME}} + +command="/usr/bin/drone-server server" +command_background="true" +start_stop_daemon_args="--user ${user} --group ${group} \ + --stdout /var/log/${SVCNAME}/${SVCNAME}.log \ + --stderr /var/log/${SVCNAME}/${SVCNAME}.log" |