4 description="A free and open source uptime monitoring solution"
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
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"
22 checkpath --file --owner "$name:$name" -m 755 "$output_log"
23 checkpath --directory --owner "$name:$name" -m 750 "$DATA_DIR"