mirror of
https://github.com/nezhahq/nezha.git
synced 2025-01-22 20:58:14 -05:00
52703f38cd
* Add standalone installation method & OpenRC support for nezha-agent * Add missing translations & more precise query * bump installer version
17 lines
299 B
Plaintext
17 lines
299 B
Plaintext
#!/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 $?
|
|
}
|