mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-24 19:55:26 +03:00
23 lines
514 B
Bash
23 lines
514 B
Bash
#!/sbin/openrc-run
|
|
|
|
name="Laminar CI"
|
|
description="Fast and lightweight Continuous Integration server"
|
|
|
|
: ${output_logger="logger -t laminard -p daemon.info >/dev/null 2>&1"}
|
|
: ${error_logger="logger -t laminard -p daemon.err >/dev/null 2>&1"}
|
|
|
|
command="/usr/bin/laminard"
|
|
command_user="laminar:laminar"
|
|
command_background="yes"
|
|
directory="/var/lib/$RC_SVCNAME"
|
|
pidfile="/run/$RC_SVCNAME.pid"
|
|
|
|
depend() {
|
|
need localmount
|
|
}
|
|
|
|
start_pre() {
|
|
checkpath -d -o "$command_user" "$directory"
|
|
|
|
source /etc/laminar.conf
|
|
}
|