add supervise daemon for alpine (#313)
alpine在自动更新agent以后不会自动重启agent,导致批量掉线,添加守护进程以后问题解决
This commit is contained in:
parent
51c1e41123
commit
bb789f7652
@ -1,4 +1,7 @@
|
|||||||
#!/sbin/openrc-run
|
#!/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
|
SERVER="nz_grpc_host:nz_grpc_port" #Dashboard 地址 ip:port
|
||||||
SECRET="nz_client_secret" #SECRET
|
SECRET="nz_client_secret" #SECRET
|
||||||
NZ_BASE_PATH="/opt/nezha"
|
NZ_BASE_PATH="/opt/nezha"
|
||||||
|
Loading…
Reference in New Issue
Block a user