diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-05 11:19:16 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-05 12:07:37 +0000 |
commit | b485aab7e71c1625cfc27e0f92c9509f42378458 (patch) | |
tree | ae9abe108601079d1679194de237c9a435ae5b55 /src/daemon/daemon.h | |
parent | Adding upstream version 1.44.3. (diff) | |
download | netdata-b485aab7e71c1625cfc27e0f92c9509f42378458.tar.xz netdata-b485aab7e71c1625cfc27e0f92c9509f42378458.zip |
Adding upstream version 1.45.3+dfsg.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/daemon/daemon.h')
-rw-r--r-- | src/daemon/daemon.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/daemon/daemon.h b/src/daemon/daemon.h new file mode 100644 index 000000000..1f8837fd6 --- /dev/null +++ b/src/daemon/daemon.h @@ -0,0 +1,16 @@ +// SPDX-License-Identifier: GPL-3.0-or-later + +#ifndef NETDATA_DAEMON_H +#define NETDATA_DAEMON_H 1 + +int become_daemon(int dont_fork, const char *user); + +void netdata_cleanup_and_exit(int ret, const char *action, const char *action_result, const char *action_data); + +void get_netdata_execution_path(void); + +extern char pidfile[]; +extern char netdata_exe_file[]; +extern char netdata_exe_path[]; + +#endif /* NETDATA_DAEMON_H */ |