mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-09-21 13:41:20 +02:00
23 lines
412 B
Plaintext
23 lines
412 B
Plaintext
#!/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
|
|
}
|