]> git.sev.monster Git - aports.git/blame - testing/uptime-kuma/uptime-kuma.initd
testing/py3-iso3166: bump pkgrel for python update
[aports.git] / testing / uptime-kuma / uptime-kuma.initd
CommitLineData
30f6cf88 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 \
107c93dd 8 UPTIME_KUMA_SSL_CERT UPTIME_KUMA_CLOUDFLARED_TOKEN \
30f6cf88 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"
107c93dd 16: ${command_user:="$name:$name"}
30f6cf88 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.049387 seconds and 4 git commands to generate.