Add standalone installation method & OpenRC support for nezha-agent (#300)

* Add standalone installation method & OpenRC support for nezha-agent

* Add missing translations & more precise query

* bump installer version
This commit is contained in:
Applexad
2023-11-30 09:39:00 +08:00
committed by GitHub
parent d0707b9b05
commit 52703f38cd
5 changed files with 1024 additions and 215 deletions

16
script/nezha-dashboard Normal file
View File

@@ -0,0 +1,16 @@
#!/sbin/openrc-run
pidfile="/run/${RC_SVCNAME}.pid"
command="/opt/nezha/dashboard/app"
command_args=""
command_background=true
directory="/opt/nezha/dashboard"
depend() {
need net
}
reload() {
ebegin "Reloading ${RC_SVCNAME}"
start-stop-daemon --signal HUP --pidfile "${pidfile}"
eend $?
}