Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
70d3ac05
Commit
70d3ac05
authored
Feb 09, 2005
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk-internal.mysql.com:/home/bk/mysql-5.0
into mysql.com:/home/my/mysql-5.0 sql/mysqld.cc: Auto merged
parents
3afb61e1
4583ebf1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
17 deletions
+17
-17
sql/mysqld.cc
sql/mysqld.cc
+14
-15
sql/nt_servc.h
sql/nt_servc.h
+3
-2
No files found.
sql/mysqld.cc
View file @
70d3ac05
...
@@ -3302,12 +3302,14 @@ default_service_handling(char **argv,
...
@@ -3302,12 +3302,14 @@ default_service_handling(char **argv,
if
(
Service
.
got_service_option
(
argv
,
"install"
))
if
(
Service
.
got_service_option
(
argv
,
"install"
))
{
{
Service
.
Install
(
1
,
servicename
,
displayname
,
path_and_service
,
account_name
);
Service
.
Install
(
1
,
servicename
,
displayname
,
path_and_service
,
account_name
);
return
0
;
return
0
;
}
}
if
(
Service
.
got_service_option
(
argv
,
"install-manual"
))
if
(
Service
.
got_service_option
(
argv
,
"install-manual"
))
{
{
Service
.
Install
(
0
,
servicename
,
displayname
,
path_and_service
,
account_name
);
Service
.
Install
(
0
,
servicename
,
displayname
,
path_and_service
,
account_name
);
return
0
;
return
0
;
}
}
if
(
Service
.
got_service_option
(
argv
,
"remove"
))
if
(
Service
.
got_service_option
(
argv
,
"remove"
))
...
@@ -3361,7 +3363,8 @@ int main(int argc, char **argv)
...
@@ -3361,7 +3363,8 @@ int main(int argc, char **argv)
}
}
else
if
(
argc
==
3
)
/* install or remove any optional service */
else
if
(
argc
==
3
)
/* install or remove any optional service */
{
{
if
(
!
default_service_handling
(
argv
,
argv
[
2
],
argv
[
2
],
file_path
,
""
,
NULL
))
if
(
!
default_service_handling
(
argv
,
argv
[
2
],
argv
[
2
],
file_path
,
""
,
NULL
))
return
0
;
return
0
;
if
(
Service
.
IsService
(
argv
[
2
]))
if
(
Service
.
IsService
(
argv
[
2
]))
{
{
...
@@ -3388,24 +3391,20 @@ int main(int argc, char **argv)
...
@@ -3388,24 +3391,20 @@ int main(int argc, char **argv)
--defaults-file=file, but that was not enforced in 4.1, so we don't
--defaults-file=file, but that was not enforced in 4.1, so we don't
enforce it here.)
enforce it here.)
*/
*/
c
har
*
extra_opt
=
NULL
;
c
onst
char
*
extra_opt
=
NullS
;
c
har
*
account_name
=
NULL
;
c
onst
char
*
account_name
=
NullS
;
int
index
;
int
index
;
for
(
index
=
3
;
index
<
argc
;
index
++
)
for
(
index
=
3
;
index
<
argc
;
index
++
)
{
{
if
(
strncmp
(
argv
[
index
],
"--local-service"
,
15
)
==
0
)
if
(
!
strcmp
(
argv
[
index
],
"--local-service"
))
{
account_name
=
"NT AUTHORITY
\\
LocalService"
;
account_name
=
(
char
*
)
malloc
(
27
);
strmov
(
account_name
,
"NT AUTHORITY
\\
LocalService
\0
"
);
}
else
else
{
extra_opt
=
argv
[
index
];
extra_opt
=
argv
[
index
];
}
}
}
if
(
argc
!=
5
||
account_name
)
if
(
argc
==
4
||
account_name
)
if
(
!
default_service_handling
(
argv
,
argv
[
2
],
argv
[
2
],
file_path
,
extra_opt
,
account_name
))
if
(
!
default_service_handling
(
argv
,
argv
[
2
],
argv
[
2
],
file_path
,
extra_opt
,
account_name
))
return
0
;
return
0
;
}
}
else
if
(
argc
==
1
&&
Service
.
IsService
(
MYSQL_SERVICENAME
))
else
if
(
argc
==
1
&&
Service
.
IsService
(
MYSQL_SERVICENAME
))
...
...
sql/nt_servc.h
View file @
70d3ac05
...
@@ -48,8 +48,9 @@ class NTService
...
@@ -48,8 +48,9 @@ class NTService
//service install / un-install
//service install / un-install
BOOL
Install
(
int
startType
,
LPCSTR
szInternName
,
LPCSTR
szDisplayName
,
LPCSTR
szFullPath
,
BOOL
Install
(
int
startType
,
LPCSTR
szInternName
,
LPCSTR
szDisplayName
,
LPCSTR
szAccountName
=
NULL
,
LPCSTR
szPassword
=
NULL
);
LPCSTR
szFullPath
,
LPCSTR
szAccountName
=
NULL
,
LPCSTR
szPassword
=
NULL
);
BOOL
SeekStatus
(
LPCSTR
szInternName
,
int
OperationType
);
BOOL
SeekStatus
(
LPCSTR
szInternName
,
int
OperationType
);
BOOL
Remove
(
LPCSTR
szInternName
);
BOOL
Remove
(
LPCSTR
szInternName
);
BOOL
IsService
(
LPCSTR
ServiceName
);
BOOL
IsService
(
LPCSTR
ServiceName
);
...
...
Write
Preview
Markdown
is supported
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