summaryrefslogtreecommitdiff
path: root/source3/web/startstop.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/web/startstop.c')
-rw-r--r--source3/web/startstop.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/source3/web/startstop.c b/source3/web/startstop.c
index 9eeac96cc0..80b5ce7444 100644
--- a/source3/web/startstop.c
+++ b/source3/web/startstop.c
@@ -21,11 +21,12 @@
#include "includes.h"
#include "smb.h"
+#include "dynconfig.h"
-/* need to wait for daemons to startup */
+/** Need to wait for daemons to startup */
#define SLEEP_TIME 3
-/* startup smbd */
+/** Startup smbd from web interface. */
void start_smbd(void)
{
pstring binfile;
@@ -37,7 +38,7 @@ void start_smbd(void)
return;
}
- slprintf(binfile, sizeof(pstring) - 1, "%s/smbd", SBINDIR);
+ slprintf(binfile, sizeof(pstring) - 1, "%s/smbd", dyn_SBINDIR);
become_daemon();
@@ -58,7 +59,7 @@ void start_nmbd(void)
return;
}
- slprintf(binfile, sizeof(pstring) - 1, "%s/nmbd", SBINDIR);
+ slprintf(binfile, sizeof(pstring) - 1, "%s/nmbd", dyn_SBINDIR);
become_daemon();