Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
openldap
OpenLDAP
Commits
e0bf8e89
Commit
e0bf8e89
authored
May 27, 2000
by
Kurt Zeilenga
Browse files
Fix build problems under NT... likely broken service manager code.
parent
203f1d28
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/main.c
View file @
e0bf8e89
...
...
@@ -33,7 +33,7 @@ LIBLUTIL_F (SERVICE_STATUS_HANDLE) hSLAPDServiceStatus;
extern
ldap_pvt_thread_cond_t
started_event
,
stopped_event
;
extern
int
is_NT_Service
;
void
CommenceStartupProcessing
(
LPCTSTR
serv
ic
eName
,
void
CommenceStartupProcessing
(
LPCTSTR
serve
r
Name
,
void
(
*
stopper
)(
int
));
void
ReportSlapdShutdownComplete
(
void
);
void
*
getRegParam
(
char
*
svc
,
char
*
value
);
...
...
@@ -112,7 +112,7 @@ usage( char *name )
#ifdef LOG_LOCAL4
"
\t
-l sysloguser
\t
Syslog User (default: LOCAL4)
\n
"
#endif
"
\t
-n serv
ic
eName
\t
service name
\n
"
"
\t
-n serve
r
Name
\t
service name
\n
"
"
\t
-s level
\t
Syslog Level
\n
"
#ifdef SLAPD_BDB2
"
\t
-t
\t\t
Enable BDB2 timing
\n
"
...
...
@@ -169,10 +169,10 @@ int main( int argc, char **argv )
char
*
regService
=
NULL
;
if
(
is_NT_Service
)
{
NT
serv
ic
e
=
argv
[
0
];
CommenceStartupProcessing
(
NT
serv
ic
e
,
slap_sig_shutdown
);
if
(
strcmp
(
NT
serv
ic
e
,
SERVICE_NAME
)
)
regService
=
NT
serv
ic
e
;
serv
erNam
e
=
argv
[
0
];
CommenceStartupProcessing
(
serv
erNam
e
,
slap_sig_shutdown
);
if
(
strcmp
(
serv
erNam
e
,
SERVICE_NAME
)
)
regService
=
serv
erNam
e
;
}
i
=
(
int
*
)
getRegParam
(
regService
,
"DebugLevel"
);
...
...
@@ -443,7 +443,7 @@ int main( int argc, char **argv )
#ifdef HAVE_NT_EVENT_LOG
if
(
is_NT_Service
)
LogSlapdStartedEvent
(
NT
serv
ic
e
,
slap_debug
,
configfile
,
urls
);
LogSlapdStartedEvent
(
serv
erNam
e
,
slap_debug
,
configfile
,
urls
);
#endif
rc
=
slapd_daemon
();
...
...
@@ -471,7 +471,7 @@ destroy:
stop:
#ifdef HAVE_NT_EVENT_LOG
if
(
is_NT_Service
)
LogSlapdStoppedEvent
(
NT
serv
ic
e
);
LogSlapdStoppedEvent
(
serv
erNam
e
);
#endif
Debug
(
LDAP_DEBUG_ANY
,
"slapd stopped.
\n
"
,
0
,
0
,
0
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment