diff --git a/script/nezha-agent b/script/nezha-agent index 79bc71a..3189b04 100755 --- a/script/nezha-agent +++ b/script/nezha-agent @@ -1,4 +1,7 @@ #!/sbin/openrc-run +supervisor=supervise-daemon +name=nezha-agent +supervise_daemon_args="--stdout /var/log/${name}.log --stderr /var/log/${name}.err" SERVER="nz_grpc_host:nz_grpc_port" #Dashboard 地址 ip:port SECRET="nz_client_secret" #SECRET NZ_BASE_PATH="/opt/nezha" @@ -56,4 +59,4 @@ start_pre() { if [ "${RC_CMD}" != "restart" ]; then checkconfig || return $? fi -} \ No newline at end of file +}