]> git.sev.monster Git - aports.git/blame - testing/uptime-kuma/uptime-kuma.initd
uptime-kuma: fix initd, split openrc package
[aports.git] / testing / uptime-kuma / uptime-kuma.initd
CommitLineData
7503506a 1#!/sbin/openrc-run
2
3name="uptime-kuma"
4description="A free and open source uptime monitoring solution"
5
6: ${DATA_DIR:=/var/lib/$name/}
7export DATA_DIR UPTIME_KUMA_HOST UPTIME_KUMA_PORT UPTIME_KUMA_SSL_KEY \
91d09f94 8 UPTIME_KUMA_SSL_CERT UPTIME_KUMA_CLOUDFLARED_TOKEN \
7503506a 9 UPTIME_KUMA_DISABLE_FRAME_SAMEORIGIN NODE_EXTRA_CA_CERTS \
10 NODE_TLS_REJECT_UNAUTHORIZED NODE_OPTIONS
11
12directory="/usr/share/$RC_SVCNAME"
13: ${pidfile:="/run/$RC_SVCNAME.pid"}
14command="/usr/bin/node"
15command_args="server/server.js $command_args"
91d09f94 16: ${command_user:="$name:$name"}
7503506a 17command_background="yes"
18output_log="/var/log/$RC_SVCNAME.log"
19error_log="$output_log"
20
21start_pre() {
22 checkpath --file --owner "$name:$name" -m 755 "$output_log"
23 checkpath --directory --owner "$name:$name" -m 750 "$DATA_DIR"
24}
25
26depends() {
27 need net
28}
29
30# vim:sts=4:sw=4:et
This page took 0.045282 seconds and 4 git commands to generate.