File mariadb@.service of Package mariadb
41
1
# It's not recommended to modify this unit file because your changes
2
# would be overwritten during the package update.
3
#
4
# However, there are 2 methods how to customize this unit file:
5
#
6
# 1) Copy this unit file from /usr/lib/systemd/system to
7
# /etc/systemd/system and modify the chosen settings.
8
#
9
# 2) Create a directory named mariadb.service.d/ within /etc/systemd/system
10
# and place a drop-in file name.conf there that only changes the specific
11
# settings one is interested in.
12
#
13
# see systemd.unit(5) for details
14
#
15
# Example - increasing of the TimeoutSec= limit
16
# mkdir /etc/systemd/system/mariadb.service.d
17
# cat > /etc/systemd/system/mariadb.service.d/timeout.conf << EOF
18
# [Service]
19
# TimeoutSec=600
20
# EOF
21
22
[Unit]
23
Description=MySQL server - %I instance
24
Wants=basic.target
25
PartOf=mariadb.target
26
After=basic.target network.target
27
28
[Service]
29
Restart=on-abort
30
Type=notify
31
ExecStartPre=/usr/lib/mysql/mysql-systemd-helper install %i
32
ExecStartPre=/usr/lib/mysql/mysql-systemd-helper upgrade %i
33
ExecStart=/usr/lib/mysql/mysql-systemd-helper start %i
34
35
# Configures the time to wait for start-up/stop
36
TimeoutSec=300
37
38
[Install]
39
WantedBy=multi-user.target
40
Alias=mysql.service
41