summaryrefslogtreecommitdiff
path: root/source3/include/proto.h
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-03-14 12:57:58 +0000
committerAndrew Tridgell <tridge@samba.org>1998-03-14 12:57:58 +0000
commitc063e9ec3e90508e846dd51e22a643c74c02f7c1 (patch)
treeacc4717e33dfdf1a6492e00b5737da1a3a708be0 /source3/include/proto.h
parente2b50d04ad5eb5fa7c10b59cf5ba0cfe374ab240 (diff)
downloadsamba-c063e9ec3e90508e846dd51e22a643c74c02f7c1.tar.gz
samba-c063e9ec3e90508e846dd51e22a643c74c02f7c1.tar.bz2
samba-c063e9ec3e90508e846dd51e22a643c74c02f7c1.zip
added the ability to start/stop the server from SWAT.
I needed to modify the way the pidfile is handled in nmbd and smbd to do this. Jeremy, you may wish to look at what I've done as it probably breaks the Whistle use of pidfiles. In particular I've removed the -f option and instead smbd and nmbd always create a pidfile in the lock directory. (This used to be commit 20bb22d61b986d2036c681fc33db60f2b2b3c1c7)
Diffstat (limited to 'source3/include/proto.h')
-rw-r--r--source3/include/proto.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index 9c7c37f1a6..88b340319e 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -1487,6 +1487,11 @@ BOOL server_validate(char *user, char *domain,
BOOL pcap_printername_ok(char *pszPrintername, char *pszPrintcapname);
void pcap_printer_fn(void (*fn)());
+/*The following definitions come from pidfile.c */
+
+void pidfile_create(char *name);
+int pidfile_pid(char *name);
+
/*The following definitions come from pipes.c */
int reply_open_pipe_and_X(char *inbuf,char *outbuf,int length,int bufsize);
@@ -1913,6 +1918,18 @@ char *cgi_baseurl(void);
char *cgi_rooturl(void);
char *cgi_pathinfo(void);
+/*The following definitions come from web/diagnose.c */
+
+BOOL nmbd_running(void);
+BOOL smbd_running(void);
+
+/*The following definitions come from web/startstop.c */
+
+void start_smbd(void);
+void start_nmbd(void);
+void stop_smbd(void);
+void stop_nmbd(void);
+
/*The following definitions come from web/swat.c */
int main(int argc, char *argv[]);