Sophie

Sophie

distrib > Mageia > 5 > x86_64 > by-pkgid > 5a97fc5305a85262290f6de346ba5580 > files > 29

mariadb-10.0.24-1.mga5.src.rpm

[Unit]
Description=MySQL database server
After=syslog.target
After=network.target

[Service]
Type=forking
User=mysql
Group=mysql

ExecStartPre=/usr/sbin/mysqld-prepare-db-dir
ExecStart=/usr/bin/mysqld_safe --nowatch
ExecStartPost=/usr/sbin/mysqld-wait-ready $MAINPID

# mysqld-prepare-db-dir needs root rights, this drops privileges only for ExecStart
PermissionsStartOnly=true

# Give a reasonable amount of time for the server to start up/shut down
TimeoutSec=300

# We rely on systemd, not mysqld_safe, to restart mysqld if it dies
Restart=always

[Install]
WantedBy=multi-user.target