remove USR1 "Save internal DB to disk" (#17249)
Ilya Mashchenko committed
Mar 26, 2024 at 09:16 UTC
5ea9665d48efb228173dd97222b180357728bb81
4 files changed
+2
-20
src/daemon/README.md
-1
@@ -110,7 +110,6 @@ The command line options of the Netdata 1.10.0 version are the following:
110
Signals netdata handles:
111
112
- HUP Close and reopen log files.
113
- - USR1 Save internal DB to disk.
113
- USR2 Reload health configuration.
114
```
115
src/daemon/main.c
-1
@@ -820,7 +820,6 @@ int help(int exitcode) {
820
821
fprintf(stream, "\n Signals netdata handles:\n\n"
822
" - HUP Close and reopen log files.\n"
823
- " - USR1 Save internal DB to disk.\n"
823
" - USR2 Reload health configuration.\n"
824
"\n"
825
);
system/freebsd/rc.d/netdata.in
+1
-9
@@ -17,10 +17,9 @@ required_files="@configdir_POST@/netdata.conf"
17
start_precmd="netdata_prestart"
18
stop_postcmd="netdata_poststop"
19
20
-extra_commands="reloadhealth savedb"
20
+extra_commands="reloadhealth"
21
22
reloadhealth_cmd="netdata_reloadhealth"
23
-savedb_cmd="netdata_savedb"
23
24
netdata_prestart()
25
{
@@ -42,12 +41,5 @@ netdata_reloadhealth()
41
return 0
42
}
43
45
-netdata_savedb()
46
-{
47
- p=`cat ${pidfile}`
48
- kill -USR2 ${p} && echo "Sent USR1 (save db) to pid ${p}"
49
- return 0
50
-}
51
-
44
load_rc_config $name
45
run_rc_command "$1"
system/openrc/init.d/netdata.in
+1
-9
@@ -6,10 +6,9 @@ NETDATA_PIDFILE="@localstatedir_POST@/run/netdata/netdata.pid"
6
7
description="Run the Netdata system monitoring agent."
8
9
-extra_started_commands="reload rotate save"
9
+extra_started_commands="reload rotate"
10
description_reload="Reload health configuration."
11
description_rotate="Reopen log files."
12
-description_save="Force sync of database to disk."
12
13
command_prefix="@sbindir_POST@"
14
command="${command_prefix}/netdata"
@@ -70,10 +69,3 @@ rotate() {
69
"Failed to reopen Netdata log files" \
70
SIGHUP
71
}
73
-
74
-save() {
75
- run_cmd save-database \
76
- "Saving Netdata database" \
77
- "Failed to save Netdata database" \
78
- SIGUSR1
79
-}