summaryrefslogtreecommitdiff
path: root/lib/util/samba_util.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/util/samba_util.h')
-rw-r--r--lib/util/samba_util.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/util/samba_util.h b/lib/util/samba_util.h
index dcb92eed461..e3fe6a60792 100644
--- a/lib/util/samba_util.h
+++ b/lib/util/samba_util.h
@@ -842,6 +842,18 @@ _PUBLIC_ void close_low_fds(bool stdin_too, bool stdout_too, bool stderr_too);
_PUBLIC_ void become_daemon(bool do_fork, bool no_process_group, bool log_stdout);
/**
+ Exit daemon and print error message to the log at level 0
+ Optionally report failure to systemd if systemd integration is enabled
+**/
+_PUBLIC_ void exit_daemon(const char *msg, int error);
+
+/**
+ Report that the daemon is ready to serve connections to the log at level 0
+ Optionally report status to systemd if systemd integration is enabled
+**/
+_PUBLIC_ void daemon_ready(const char *daemon);
+
+/**
* @brief Get a password from the console.
*
* You should make sure that the buffer is an empty string!