summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorIlya Mashchenko <ilya@netdata.cloud>2024-03-26 09:16:11 +0200
committerGitHub <noreply@github.com>2024-03-26 09:16:11 +0200
commit5ea9665d48efb228173dd97222b180357728bb81 (patch)
tree36c00863b4fb0be0897983f6c9a638acc0142fa5 /system
parentd00823c2a490bb3cc903d85891cca0aefd18112b (diff)
remove USR1 "Save internal DB to disk" (#17249)
Diffstat (limited to 'system')
-rw-r--r--system/freebsd/rc.d/netdata.in10
-rw-r--r--system/openrc/init.d/netdata.in10
2 files changed, 2 insertions, 18 deletions
diff --git a/system/freebsd/rc.d/netdata.in b/system/freebsd/rc.d/netdata.in
index fd544c86c5..0ede6621e0 100644
--- a/system/freebsd/rc.d/netdata.in
+++ b/system/freebsd/rc.d/netdata.in
@@ -17,10 +17,9 @@ required_files="@configdir_POST@/netdata.conf"
start_precmd="netdata_prestart"
stop_postcmd="netdata_poststop"
-extra_commands="reloadhealth savedb"
+extra_commands="reloadhealth"
reloadhealth_cmd="netdata_reloadhealth"
-savedb_cmd="netdata_savedb"
netdata_prestart()
{
@@ -42,12 +41,5 @@ netdata_reloadhealth()
return 0
}
-netdata_savedb()
-{
- p=`cat ${pidfile}`
- kill -USR2 ${p} && echo "Sent USR1 (save db) to pid ${p}"
- return 0
-}
-
load_rc_config $name
run_rc_command "$1"
diff --git a/system/openrc/init.d/netdata.in b/system/openrc/init.d/netdata.in
index 8dede179c7..23d1a56cb1 100644
--- a/system/openrc/init.d/netdata.in
+++ b/system/openrc/init.d/netdata.in
@@ -6,10 +6,9 @@ NETDATA_PIDFILE="@localstatedir_POST@/run/netdata/netdata.pid"
description="Run the Netdata system monitoring agent."
-extra_started_commands="reload rotate save"
+extra_started_commands="reload rotate"
description_reload="Reload health configuration."
description_rotate="Reopen log files."
-description_save="Force sync of database to disk."
command_prefix="@sbindir_POST@"
command="${command_prefix}/netdata"
@@ -70,10 +69,3 @@ rotate() {
"Failed to reopen Netdata log files" \
SIGHUP
}
-
-save() {
- run_cmd save-database \
- "Saving Netdata database" \
- "Failed to save Netdata database" \
- SIGUSR1
-}