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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
7a632134
Commit
7a632134
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
dab2e46a
1cbf4056
Changes
2
Hide 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 @
7a632134
...
...
@@ -3302,12 +3302,14 @@ default_service_handling(char **argv,
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
;
}
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
;
}
if
(
Service
.
got_service_option
(
argv
,
"remove"
))
...
...
@@ -3327,7 +3329,7 @@ int main(int argc, char **argv)
application PID e.g.: MySQLShutdown1890; MySQLShutdown2342
*/
int10_to_str
((
int
)
GetCurrentProcessId
(),
strmov
(
shutdown_event_name
,
"MySQLShutdown"
),
10
);
"MySQLShutdown"
),
10
);
/* Must be initialized early for comparison of service name */
system_charset_info
=
&
my_charset_utf8_general_ci
;
...
...
@@ -3361,7 +3363,8 @@ int main(int argc, char **argv)
}
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
;
if
(
Service
.
IsService
(
argv
[
2
]))
{
...
...
@@ -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
enforce it here.)
*/
c
har
*
extra_opt
=
NULL
;
c
har
*
account_name
=
NULL
;
c
onst
char
*
extra_opt
=
NullS
;
c
onst
char
*
account_name
=
NullS
;
int
index
;
for
(
index
=
3
;
index
<
argc
;
index
++
)
{
if
(
strncmp
(
argv
[
index
],
"--local-service"
,
15
)
==
0
)
{
account_name
=
(
char
*
)
malloc
(
27
);
strmov
(
account_name
,
"NT AUTHORITY
\\
LocalService
\0
"
);
}
if
(
!
strcmp
(
argv
[
index
],
"--local-service"
))
account_name
=
"NT AUTHORITY
\\
LocalService"
;
else
{
extra_opt
=
argv
[
index
];
}
}
if
(
argc
!=
5
||
account_name
)
if
(
!
default_service_handling
(
argv
,
argv
[
2
],
argv
[
2
],
file_path
,
extra_opt
,
account_name
))
if
(
argc
==
4
||
account_name
)
if
(
!
default_service_handling
(
argv
,
argv
[
2
],
argv
[
2
],
file_path
,
extra_opt
,
account_name
))
return
0
;
}
else
if
(
argc
==
1
&&
Service
.
IsService
(
MYSQL_SERVICENAME
))
...
...
sql/nt_servc.h
View file @
7a632134
...
...
@@ -48,8 +48,9 @@ class NTService
//service install / un-install
BOOL
Install
(
int
startType
,
LPCSTR
szInternName
,
LPCSTR
szDisplayName
,
LPCSTR
szFullPath
,
LPCSTR
szAccountName
=
NULL
,
LPCSTR
szPassword
=
NULL
);
BOOL
Install
(
int
startType
,
LPCSTR
szInternName
,
LPCSTR
szDisplayName
,
LPCSTR
szFullPath
,
LPCSTR
szAccountName
=
NULL
,
LPCSTR
szPassword
=
NULL
);
BOOL
SeekStatus
(
LPCSTR
szInternName
,
int
OperationType
);
BOOL
Remove
(
LPCSTR
szInternName
);
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