diff options
Diffstat (limited to 'community/drone/drone.initd')
-rw-r--r-- | community/drone/drone.initd | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/community/drone/drone.initd b/community/drone/drone.initd new file mode 100644 index 00000000000..01507d52cf2 --- /dev/null +++ b/community/drone/drone.initd @@ -0,0 +1,22 @@ +#!/sbin/openrc-run + +supervisor=supervise-daemon + +name="Drone CI server" + +command="/usr/bin/drone-server" +command_args="-env-file ${env_file:-/etc/drone.conf}" +command_user="drone:drone" +directory="/var/lib/drone" + +error_log="/var/log/drone.log" + +depend() { + need net + after firewall +} + +start_pre() { + checkpath -d -m 755 -o "drone:drone" /var/lib/drone + checkpath -f -m 644 -o "drone:drone" /var/log/drone.log +} |