mirror of
https://abf.rosa.ru/djam/samba.git
synced 2025-02-24 09:32:49 +00:00
25 lines
880 B
Diff
25 lines
880 B
Diff
diff --git a/lib/util/become_daemon.c b/lib/util/become_daemon.c
|
|
index 688bedd..ea9479c 100644
|
|
--- a/lib/util/become_daemon.c
|
|
+++ b/lib/util/become_daemon.c
|
|
@@ -125,15 +125,15 @@ _PUBLIC_ void exit_daemon(const char *msg, int error)
|
|
exit(1);
|
|
}
|
|
|
|
-_PUBLIC_ void daemon_ready(const char *daemon)
|
|
+_PUBLIC_ void daemon_ready(const char *name)
|
|
{
|
|
- if (daemon == NULL) {
|
|
- daemon = "Samba";
|
|
+ if (name == NULL) {
|
|
+ name = "Samba";
|
|
}
|
|
#ifdef HAVE_SYSTEMD
|
|
- sd_notifyf(0, "READY=1\nSTATUS=%s: ready to serve connections...", daemon);
|
|
+ sd_notifyf(0, "READY=1\nSTATUS=%s: ready to serve connections...", name);
|
|
#endif
|
|
- DEBUG(0, ("STATUS=daemon '%s' finished starting up and ready to serve connections", daemon));
|
|
+ DEBUG(0, ("STATUS=daemon '%s' finished starting up and ready to serve connections\n", name));
|
|
}
|
|
|
|
_PUBLIC_ void daemon_status(const char *name, const char *msg)
|