Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Faustin Lammler
mariadb-10.1
Commits
a2296520
Commit
a2296520
authored
Jun 21, 2017
by
Ondrej Sury
Browse files
Run invoke-rc.d mysql maintscript snippets only when running under sysvinit (Closes: #864593)
parent
c3445ba6
Changes
3
Hide whitespace changes
Inline
Side-by-side
debian/mariadb-server-10.1.postinst
View file @
a2296520
...
@@ -167,4 +167,11 @@ fi
...
@@ -167,4 +167,11 @@ fi
#DEBHELPER#
#DEBHELPER#
# Modified dh_installinit snippet to only run with sysvinit
if
[
"
$1
"
=
"configure"
]
||
[
"
$1
"
=
"abort-upgrade"
]
;
then
if
[
!
-e
/run/systemd/system
]
&&
[
-x
"/etc/init.d/mysql"
]
;
then
invoke-rc.d mysql start
||
exit
$?
fi
fi
exit
0
exit
0
debian/mariadb-server-10.1.prerm
0 → 100644
View file @
a2296520
#!/bin/sh
set
-e
#DEBHELPER#
# Modified dh_installinit snippet to only run with sysvinit
if
[
!
-e
/run/systemd/system
]
&&
[
-x
"/etc/init.d/mysql"
]
;
then
invoke-rc.d mysql stop
||
exit
$?
fi
exit
0
debian/rules
View file @
a2296520
...
@@ -140,7 +140,7 @@ override_dh_systemd_enable:
...
@@ -140,7 +140,7 @@ override_dh_systemd_enable:
# Start mysql at sequence number 19 before 20 where apache, proftpd etc gets
# Start mysql at sequence number 19 before 20 where apache, proftpd etc gets
# started which might depend on a running database server.
# started which might depend on a running database server.
override_dh_installinit-arch:
override_dh_installinit-arch:
dh_installinit --name=mysql -- defaults 19 21
dh_installinit --name=mysql
--no-start
-- defaults 19 21
dh_systemd_start --no-restart-after-upgrade
dh_systemd_start --no-restart-after-upgrade
override_dh_installcron-arch:
override_dh_installcron-arch:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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