notes: - to build the package, you must use the cargo version from the edge branch (by building on edge or by installing it manually) - building from git requires some work (abuild supports snapshots for getting the release from git, but the version number would remain unchanged) - the apkbuild doesn't include any packaging tests (as i don't know what to include)
19 lines
468 B
Text
19 lines
468 B
Text
#!/sbin/openrc-run
|
|
|
|
command="/usr/bin/continuwuity"
|
|
command_user="continuwuity:continuwuity"
|
|
command_args="--config ${CONTINUWUITY_CONFIG=/etc/continuwuity/continuwuity.toml}"
|
|
command_background=true
|
|
pidfile="/run/$RC_SVCNAME.pid"
|
|
|
|
output_log="/var/log/continuwuity.log"
|
|
error_log="/var/log/continuwuity.log"
|
|
|
|
depend() {
|
|
need net
|
|
}
|
|
|
|
start_pre() {
|
|
checkpath -d -m 0755 -o "$command_user" /var/lib/continuwuity
|
|
checkpath -f -m 0644 -o "$command_user" "$output_log"
|
|
}
|