add systemd integration
[obnox/samba/samba-obnox.git] / lib / util / samba_util.h
index dcb92eed461ff9e20b21d0ce7fc81d056fcb35b8..e3fe6a6079229053fed063d7c84c88be430b551b 100644 (file)
@@ -841,6 +841,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.
  *