PKGBUILDs/community/percona-server/mysqld.service
2012-07-13 14:31:20 -04:00

21 lines
454 B
Desktop File

[Unit]
Description=MySQL database server
After=syslog.target network.target
[Service]
User=mysql
Group=mysql
ExecStart=/usr/bin/mysqld --pid-file=/var/run/mysqld/mysqld.pid
ExecStop=/bin/kill -15 $MAINPID
PIDFile=/var/run/mysqld/mysqld.pid
WorkingDirectory=/usr
# We rely on systemd, not mysqld_safe, to restart mysqld if it dies
Restart=always
# Place temp files in a secure directory, not /tmp
PrivateTmp=true
[Install]
WantedBy=multi-user.target