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